ICrugeSystem.php 927 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<?php
/** ICrugeSystem

	@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
	@license protected/modules/cruge/LICENSE
 */
interface ICrugeSystem
{

    /*
        entrega el valor string de un atributo
    */
    public function get($attribute);

    /*
        entrega el valor numerico de un atributo
    */
    public function getn($attribute);

    /*
        encuentra un sistema por su nombre
    */
    public static function findSystem($systemName);

    /*
        entrega un array de ICrugeSystem
    */
    public static function listModels();

    /*
        retorna el nombre corto de un sistema
    */
    public function getShortName();

    public function getLargeName();

    /*
        @returns boolean true si el sistema esta disponible para iniciar sesion
    */
    public function isAvailableForLogin();

    public function tableName();

    public function getPrimaryKey();

}