File "Policy.php"
Full Path: /home/rubycabfbt/www/wp-content/plugins/advanced-access-manager/application/Framework/Resource/Policy.php
File size: 932 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* ======================================================================
* LICENSE: This file is subject to the terms and conditions defined in *
* file 'license.txt', which is part of this source code package. *
* ======================================================================
*/
/**
* Policy resource class
*
* @package AAM
* @version 7.0.0
*/
class AAM_Framework_Resource_Policy implements AAM_Framework_Resource_Interface
{
use AAM_Framework_Resource_BaseTrait;
/**
* @inheritDoc
*/
protected $type = AAM_Framework_Type_Resource::POLICY;
/**
* Determine correct resource identifier based on provided data
*
* @param WP_Post $resource_identifier
*
* @return mixed
* @access private
*
* @version 7.0.0
*/
private function _get_resource_id($resource_identifier)
{
return $resource_identifier->ID;
}
}