ldap == null) { } return $this->ldap; } private function getDb(){ if($this->ldap == null) { } return $this->db; } public function getUserContacts($params){ if($this->isLoggedIn($params)) { } $this->result = array ( 'contacts' => $contacts ); return $this->getResponse(); } public function getGlobalContacts($params){ if($this->isLoggedIn($params)) { } $this->result = array ( 'contacts' => $contacts ); return $this->getResponse(); } }