public function getUser($property, $value)
    {
        $class = new \core_kernel_classes_Class(GenerisRdf::CLASS_GENERIS_USER);

        $users = \tao_models_classes_UserService::singleton()->searchInstances(
            array($property => $value), 
            $class,
            array('like' => false, 'recursive' => true)
        );
        $user = empty($users) ? null : current($users);
        
        return $user;
    }
public function getUser($property, $value)
    {
        $class = new \core_kernel_classes_Class(GenerisRdf::CLASS_GENERIS_USER);

        $users = \tao_models_classes_UserService::singleton()->searchInstances(
            array($property => $value), 
            $class,
            array('like' => false, 'recursive' => true)
        );
        $user = empty($users) ? null : current($users);
        
        return $user;
    }
public function getUser ( $ property , $ value ) { $ class = new \ core_kernel_classes_Class ( GenerisRdf :: CLASS_GENERIS_USER ) ; $ users = \ tao_models_classes_UserService :: singleton ( ) -> searchInstances ( array ( $ property => $ value ) , $ class , array ( 'like' => false , 'recursive' => true ) ) ; $ user = empty ( $ users ) ? null : current ( $ users ) ; return $ user ; }
Get user by property value
@param string $property uri
@param type $value property value
@return core_kernel_classes_Resource | null
Get user by property value