id = $id*1; $query = "select author_id from authors where author_id = ".$this->id; $result = pmb_mysql_query($query); if($result && pmb_mysql_num_rows($result)) { $this->authority = authorities_collection::get_authority(AUT_TABLE_AUTHORITY, 0,['num_object'=> $this->id,'type_object' =>AUT_TABLE_AUTHORS]);//new authority(0, $this->id, AUT_TABLE_AUTHORS); } } /** * @see authority_page::get_authority_tabs() */ protected function get_authority_tabs(){ if(!$this->authority_tabs){ $this->authority_tabs = new authority_tabs_author($this->authority); } return $this->authority_tabs; } }