/**
  * A private method to "expand" a delivery limitation from the string format that
  * is saved in the database (ie. in the acls or acls_channel table) into its
  * "expanded" form.
  *
  * Expands the string format into an array of browser codes.
  *
  * @access private
  * @param string $data An optional, flat form delivery limitation data string.
  * @return mixed The delivery limitation data in expanded format.
  */
 function _expandData($data = null)
 {
     $result = parent::_expandData($data);
     if (!is_array($result)) {
         return strlen($result) ? explode($this->delimiter, $result) : array();
     }
     return $result;
 }
Ejemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     $aConf = $GLOBALS['_MAX']['CONF'];
     if ($aConf['database']['type'] == 'mysql') {
         $this->columnName = 'CONCAT(IF(https=1, \'https://\', \'http://\'), domain, page, IF(query<>\'\', \'?\', \'\'),query)';
     } else {
         $this->columnName = 'IF(https=1, \'https://\', \'http://\') || domain || page || IF(query<>\'\', \'?\', \'\') || query';
     }
     $this->nameEnglish = 'Site - Page URL';
 }
Ejemplo n.º 3
0
 function init($data)
 {
     parent::init($data);
     $this->data = $this->_flattenData($this->data);
 }
Ejemplo n.º 4
0
 function __construct()
 {
     parent::__construct();
     $this->nameEnglish = 'Client - Domain';
 }
 function __construct()
 {
     parent::__construct();
     $this->columnName = 'geo_area_code';
     $this->nameEnglish = 'Geo - US Area code';
 }
 function __construct()
 {
     parent::__construct();
     $this->columnName = 'referer';
     $this->nameEnglish = 'Site - Referring Page';
 }
Ejemplo n.º 7
0
 function __construct()
 {
     parent::__construct();
     $this->columnName = 'channel';
     $this->nameEnglish = 'Site - Source';
 }
 function __construct()
 {
     parent::__construct();
     $this->columnName = 'geo_organisation';
     $this->nameEnglish = 'Geo - ISP/Organisation';
 }
 function __construct()
 {
     parent::__construct();
     $this->columnName = 'user_agent';
     $this->nameEnglish = 'Client - Useragent';
 }
Ejemplo n.º 10
0
 function Plugins_DeliveryLimitations_Client_Useragent()
 {
     parent::Plugins_DeliveryLimitations();
     $this->columnName = 'user_agent';
     $this->nameEnglish = 'Client - Useragent';
 }
Ejemplo n.º 11
0
 /**
  * A private method to "expand" a delivery limitation from the string format that
  * is saved in the database (ie. in the acls or acls_channel table) into its
  * "expanded" form.
  *
  * Expands the string format into an array of the country, and a comma separated
  * string of cities.
  *
  * @access private
  * @param string $data An optional, flat form delivery limitation data string.
  * @return mixed The delivery limitation data in expanded format.
  */
 function _expandData($data = null)
 {
     $data = parent::_expandData($data);
     return MAX_limitationsGeoCityUnserialize($data);
 }
 function __construct()
 {
     parent::__construct();
     $this->columnName = 'geo_postal_code';
     $this->nameEnglish = 'Geo - US/Canada Postal Code';
 }
Ejemplo n.º 13
0
 function Plugins_DeliveryLimitations_Site_Source()
 {
     parent::Plugins_DeliveryLimitations();
     $this->columnName = 'channel';
     $this->nameEnglish = 'Site - Source';
 }