コード例 #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
 }
コード例 #2
0
 /**
  * Constructor
  */
 public function __construct($po_engine_result = null, $pa_tables = null)
 {
     parent::__construct($po_engine_result = null, $pa_tables = null);
 }
コード例 #3
0
 /**
  * Constructor
  */
 public function __construct($ps_table)
 {
     $this->ops_table_name = $ps_table;
     parent::__construct();
 }
コード例 #4
0
 /**
  * Returns information for a media version in a media field. If key is specified then a specific element of the media info list
  * is returned, otherwise the entire list is returned as an associative array.
  *
  * @param string $ps_field The field to fetch media from
  * @param string $ps_version The media version to fetch
  * @param string $ps_key The name of the info element to return. (Ex. 'HEIGHT' returns the media height; 'MD5' returns the md5 hash for the media). If omitted the entire array will be returned.
  * @param array $pa_options Optional array of options. Options are:
  *						index = if media repeats, indicates the position of the value to return. The index is zero-based.
  *						checkAccess = array of access values to restrict returned values to.
  */
 public function getMediaInfo($ps_field, $ps_version, $ps_key = null, $pa_options = null)
 {
     $va_tmp = explode('.', $ps_field);
     $va_check_access = isset($pa_options['checkAccess']) ? $pa_options['checkAccess'] : null;
     if ($va_tmp[0] === 'ca_object_representations' && $va_tmp[1] !== 'access') {
         if (!$this->_haveAccessToRepresentation($va_check_access)) {
             return null;
         }
     }
     return parent::getMediaInfo($ps_field, $ps_version, $ps_key, isset($pa_options['index']) ? $pa_options['index'] : 0, $pa_options);
 }