public function __construct($params = array(), $get_assoc = true, $get_attached = true) { global $db; parent::__construct($params, $get_assoc, $get_attached); // if this is an empty category object we'll set the lft & rgt to the max // so they encompass the all of the categories, in essence creating an // unnamed parent category to everything. if (empty($this->id)) { $this->lft = $db->min($this->table, 'lft'); $this->rgt = $db->max($this->table, 'rgt'); } }
public function __construct($params = array(), $get_assoc = true, $get_attached = true) { global $db; parent::__construct($params, $get_assoc, $get_attached); }