Example #1
0
 /**
  * Constructor.
  *
  * @access public
  */
 function __construct()
 {
     global $interface;
     global $configArray;
     global $user;
     parent::__construct();
 }
Example #2
0
 public function insert($url, $type = self::CONTENT, $action = self::FOR_PUT_WATERMARK)
 {
     $urls = [];
     $urls[] = $url;
     $urls[] = Urls::OPEN;
     $urls[] = $type;
     $urls[] = $action;
     $urls[] = date(DATE_ISO8601);
     parent::insert($urls);
 }
Example #3
0
 public function insert($data)
 {
     $decodedContent = !empty($data['content'][1]) ? json_decode($data['content'][1], true) : null;
     $content = [];
     $content[] = !empty($data['url']) ? $data['url'] : ' ';
     $content[] = !empty($decodedContent['controller']) ? $decodedContent['controller'] : ' ';
     $content[] = !empty($decodedContent['action']) ? $decodedContent['action'] : ' ';
     $content[] = !empty($data['content'][1]) ? $data['content'][1] : ' ';
     $content[] = static::$typeMap[$data['type']];
     $content[] = date(DATE_ISO8601);
     parent::insert($content);
 }
Example #4
0
 /**
  * Constructor.
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->cart = Cart_Model::getInstance();
 }