array( 'type' => 'int', 'col' => 'id_emailmaster_login', 'form' => 'idEmailmasterLogin', ), 'Login' => array( 'type' => 'text', 'col' => 'login_emailmaster_login', 'form' => 'loginEmailmasterLogin', ), 'Password' => array( 'type' => 'text', 'col' => 'password_emailmaster_login', 'form' => 'passwordEmailmasterLogin', ), 'Contact' => array( 'type' => 'text', 'col' => 'contact_emailmaster_login', 'form' => 'contactEmailmasterLogin', 'label' => true, ), 'Key' => array( 'type' => 'text', 'col' => 'key_emailmaster_login', 'form' => 'keyEmailmasterLogin', ), 'eMailMaster' => array( 'type' => 'object', 'class' => 'eMailMaster', 'col' => 'default', ), ); function getProperties() { return self::$properties; } function checkLogin($login, $password) { $Obj = Object_Factory::Build(__CLASS__); if ($Obj = $Obj->Search(array($Obj->Sql('Login', $login), $Obj->Sql('Password', $password)))) { return $Obj->current(); } else { return false; } } } ?>