/** * @param CAdminPanel $ap */ function InitByAp(&$ap) { $this->_ap =& $ap; $this->_mode = $ap->Mode(); }