* @package generis */ class core_kernel_impl_Api implements core_kernel_api_Api { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- // --- OPERATIONS --- /** * Short description of method logIn * * @access public * @author Bertrand Chevrier, * @param string login * @param string password * @param string module * @param boolean role * @return boolean */ public function logIn($login, $password, $module, $role) { $returnValue = (bool) false; if ($role === true) { $role = new core_kernel_classes_Resource(TaoOntology::PROPERTY_INSTANCE_ROLE_GLOBALMANAGER); } core_kernel_users_Service::singleton()->login($login, $password, $role); return (bool) $returnValue; } /** * Short description of method logOut * * @access public * @author Bertrand Chevrier, * @return boolean */ public function logOut() { $returnValue = (bool) false; core_kernel_users_Service::singleton()->logout(); return (bool) $returnValue; } }