src/Framework.php
public static function hasFeature($jname, $feature) {
        $return = false;
	    $admin = Factory::getAdmin($jname);
	    $user = Factory::getUser($jname);
        switch ($feature) {
            //Admin Features
            case 'wizard':
	            $return = $admin->methodDefined('setupFromPath');
                break;
            //User Features
            case 'useractivity':
                $return = $user->methodDefined('activateUser');
                break;
            case 'duallogin':
                $return = $user->methodDefined('createSession');
                break;
            case 'duallogout':
                $return = $user->methodDefined('destroySession');
                break;
            case 'updatepassword':
                $return = $user->methodDefined('updatePassword');
                break;
            case 'updateusername':
                $return = $user->methodDefined('updateUsername');
                break;
            case 'updateemail':
                $return = $user->methodDefined('updateEmail');
                break;
            case 'updateusergroup':
                $return = $user->methodDefined('updateUsergroup');
                break;
            case 'updateuserlanguage':
                $return = $user->methodDefined('updateUserLanguage');
                break;
            case 'syncsessions':
                $return = $user->methodDefined('syncSessions');
                break;
            case 'blockuser':
                $return = $user->methodDefined('blockUser');
                break;
            case 'activateuser':
                $return = $user->methodDefined('activateUser');
                break;
            case 'deleteuser':
                $return = $user->methodDefined('deleteUser');
                break;
        }
        return $return;
    }
public static function hasFeature($jname, $feature) {
        $return = false;
	    $admin = Factory::getAdmin($jname);
	    $user = Factory::getUser($jname);
        switch ($feature) {
            //Admin Features
            case 'wizard':
	            $return = $admin->methodDefined('setupFromPath');
                break;
            //User Features
            case 'useractivity':
                $return = $user->methodDefined('activateUser');
                break;
            case 'duallogin':
                $return = $user->methodDefined('createSession');
                break;
            case 'duallogout':
                $return = $user->methodDefined('destroySession');
                break;
            case 'updatepassword':
                $return = $user->methodDefined('updatePassword');
                break;
            case 'updateusername':
                $return = $user->methodDefined('updateUsername');
                break;
            case 'updateemail':
                $return = $user->methodDefined('updateEmail');
                break;
            case 'updateusergroup':
                $return = $user->methodDefined('updateUsergroup');
                break;
            case 'updateuserlanguage':
                $return = $user->methodDefined('updateUserLanguage');
                break;
            case 'syncsessions':
                $return = $user->methodDefined('syncSessions');
                break;
            case 'blockuser':
                $return = $user->methodDefined('blockUser');
                break;
            case 'activateuser':
                $return = $user->methodDefined('activateUser');
                break;
            case 'deleteuser':
                $return = $user->methodDefined('deleteUser');
                break;
        }
        return $return;
    }
public static function hasFeature ( $ jname , $ feature ) { $ return = false ; $ admin = Factory :: getAdmin ( $ jname ) ; $ user = Factory :: getUser ( $ jname ) ; switch ( $ feature ) { //Admin Features case 'wizard' : $ return = $ admin -> methodDefined ( 'setupFromPath' ) ; break ; //User Features case 'useractivity' : $ return = $ user -> methodDefined ( 'activateUser' ) ; break ; case 'duallogin' : $ return = $ user -> methodDefined ( 'createSession' ) ; break ; case 'duallogout' : $ return = $ user -> methodDefined ( 'destroySession' ) ; break ; case 'updatepassword' : $ return = $ user -> methodDefined ( 'updatePassword' ) ; break ; case 'updateusername' : $ return = $ user -> methodDefined ( 'updateUsername' ) ; break ; case 'updateemail' : $ return = $ user -> methodDefined ( 'updateEmail' ) ; break ; case 'updateusergroup' : $ return = $ user -> methodDefined ( 'updateUsergroup' ) ; break ; case 'updateuserlanguage' : $ return = $ user -> methodDefined ( 'updateUserLanguage' ) ; break ; case 'syncsessions' : $ return = $ user -> methodDefined ( 'syncSessions' ) ; break ; case 'blockuser' : $ return = $ user -> methodDefined ( 'blockUser' ) ; break ; case 'activateuser' : $ return = $ user -> methodDefined ( 'activateUser' ) ; break ; case 'deleteuser' : $ return = $ user -> methodDefined ( 'deleteUser' ) ; break ; } return $ return ; }
Check if feature exists

@static
@param string $jname
@param string $feature feature

@return bool
Check if feature exists