Example #1
0
 function __construct()
 {
     $visit_long = 3600;
     $online_long = 300;
     // pre hook
     _hk('P' . ':' . __CLASS__ . ':' . __FUNCTION__, $this, $visit_long, $online_long);
     parent::__construct('statistic');
     define('VISIT_LONG', $visit_long);
     // on hour
     define('ONLINE_LONG', $online_long);
     // 5 min
 }
Example #2
0
 /**
  * Constructor.
  * @param string scenario name. See {@link CModel::scenario} for more details about this parameter.
  */
 public function __construct($scenario = 'insert')
 {
     if ($scenario === null) {
         // internally used by populateRecord() and model()
         return;
     }
     parent::__construct();
     $this->setScenario($scenario);
     $this->setIsNewRecord(true);
     $this->_attributes = $this->getMetaData()->attributeDefaults;
     $this->attachBehaviors($this->behaviors());
     $this->afterConstruct();
 }
Example #3
0
 function __construct($table_name = 'dropdown')
 {
     parent::__construct($table_name, 'dropdown_');
     $this->table_name = $table_name;
 }
Example #4
0
 function __construct()
 {
     parent::__construct('manager', 'manager_');
 }
Example #5
0
 function __construct()
 {
     parent::__construct('widget', 'widget_');
 }
Example #6
0
 function __construct()
 {
     parent::__construct('category');
 }
Example #7
0
 function __construct()
 {
     parent::__construct('relation');
 }
Example #8
0
 function __construct()
 {
     parent::__construct('topic', 'topic_');
     $this->tag = new TTag();
 }
Example #9
0
 function __construct()
 {
     parent::__construct('member', 'member_');
 }
Example #10
0
 function __construct()
 {
     parent::__construct('attach');
 }
Example #11
0
 function __construct()
 {
     parent::__construct('plugin');
     $this->tag = new TTag();
 }
Example #12
0
 function __construct()
 {
     parent::__construct('regitery');
 }
Example #13
0
 function __construct()
 {
     parent::__construct();
 }
Example #14
0
 function __construct($table_name = 'category', $sulg = 'category')
 {
     parent::__construct($table_name, $table_name . '_');
     $this->table_name = $table_name;
     $this->sulg = $sulg;
 }
Example #15
0
 function __construct()
 {
     parent::__construct('comment', 'comment_');
 }
Example #16
0
 function __construct($table = 'tag', $prefix = 'tag_')
 {
     parent::__construct($table, $prefix);
     $this->table = $table;
     $this->prefix = $prefix;
 }
 function __construct()
 {
     parent::__construct('dropdown', 'dropdown_');
 }