function mGroup($id = 0) { parent::mTable("groups"); if ($id > 0) { $group = $this->get("`id`='$id'"); if (count($group) > 0) $this->setByArray($group[0]); } }
function mUser($id = 0) { parent::mTable("users"); if ($id > 0) { $group = $this->get("`id`='$id'"); if (count($group) > 0) $this->setByArray($group[0]); } else $this->name = "system"; }