public static function getNameByConstant($constant)
    {
        switch ($constant) {
            case self::AUTHOR:
                return 'author';
            break;

            case self::CANDIDATE:
                return 'candidate';
            break;

            case self::PROCTOR:
                return 'proctor';
            break;

            case self::SCORER:
                return 'scorer';
            break;

            case self::TEST_CONSTRUCTOR:
                return 'testConstructor';
            break;

            case self::TUTOR:
                return 'tutor';
            break;

            default:
                return false;
            break;
        }
    }
public static function getNameByConstant($constant)
    {
        switch ($constant) {
            case self::AUTHOR:
                return 'author';
            break;

            case self::CANDIDATE:
                return 'candidate';
            break;

            case self::PROCTOR:
                return 'proctor';
            break;

            case self::SCORER:
                return 'scorer';
            break;

            case self::TEST_CONSTRUCTOR:
                return 'testConstructor';
            break;

            case self::TUTOR:
                return 'tutor';
            break;

            default:
                return false;
            break;
        }
    }
public static function getNameByConstant ( $ constant ) { switch ( $ constant ) { case self :: AUTHOR : return 'author' ; break ; case self :: CANDIDATE : return 'candidate' ; break ; case self :: PROCTOR : return 'proctor' ; break ; case self :: SCORER : return 'scorer' ; break ; case self :: TEST_CONSTRUCTOR : return 'testConstructor' ; break ; case self :: TUTOR : return 'tutor' ; break ; default : return false ; break ; } }
Get a constant name by its value.

@param integer $constant The constant value from the View enumeration.
@return string|boolean The name of the constant or false it if could not be resolved.
Get a constant name by its value .