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 }
/** * 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(); }
function __construct($table_name = 'dropdown') { parent::__construct($table_name, 'dropdown_'); $this->table_name = $table_name; }
function __construct() { parent::__construct('manager', 'manager_'); }
function __construct() { parent::__construct('widget', 'widget_'); }
function __construct() { parent::__construct('category'); }
function __construct() { parent::__construct('relation'); }
function __construct() { parent::__construct('topic', 'topic_'); $this->tag = new TTag(); }
function __construct() { parent::__construct('member', 'member_'); }
function __construct() { parent::__construct('attach'); }
function __construct() { parent::__construct('plugin'); $this->tag = new TTag(); }
function __construct() { parent::__construct('regitery'); }
function __construct() { parent::__construct(); }
function __construct($table_name = 'category', $sulg = 'category') { parent::__construct($table_name, $table_name . '_'); $this->table_name = $table_name; $this->sulg = $sulg; }
function __construct() { parent::__construct('comment', 'comment_'); }
function __construct($table = 'tag', $prefix = 'tag_') { parent::__construct($table, $prefix); $this->table = $table; $this->prefix = $prefix; }
function __construct() { parent::__construct('dropdown', 'dropdown_'); }