public static function init()
    {
        $className = get_called_class();
        if (empty(static::$_fieldsDefined[$className])) {
            static::_defineFields();
            static::_initFields();

            static::$_fieldsDefined[$className] = true;
        }
        if (empty(static::$_relationshipsDefined[$className]) && static::isRelational()) {
            static::_defineRelationships();
            static::_initRelationships();

            static::$_relationshipsDefined[$className] = true;
        }

        if (empty(static::$_eventsDefined[$className])) {
            static::_defineEvents();

            static::$_eventsDefined[$className] = true;
        }
    }
public static function init()
    {
        $className = get_called_class();
        if (empty(static::$_fieldsDefined[$className])) {
            static::_defineFields();
            static::_initFields();

            static::$_fieldsDefined[$className] = true;
        }
        if (empty(static::$_relationshipsDefined[$className]) && static::isRelational()) {
            static::_defineRelationships();
            static::_initRelationships();

            static::$_relationshipsDefined[$className] = true;
        }

        if (empty(static::$_eventsDefined[$className])) {
            static::_defineEvents();

            static::$_eventsDefined[$className] = true;
        }
    }
public static function init ( ) { $ className = get_called_class ( ) ; if ( empty ( static :: $ _fieldsDefined [ $ className ] ) ) { static :: _defineFields ( ) ; static :: _initFields ( ) ; static :: $ _fieldsDefined [ $ className ] = true ; } if ( empty ( static :: $ _relationshipsDefined [ $ className ] ) && static :: isRelational ( ) ) { static :: _defineRelationships ( ) ; static :: _initRelationships ( ) ; static :: $ _relationshipsDefined [ $ className ] = true ; } if ( empty ( static :: $ _eventsDefined [ $ className ] ) ) { static :: _defineEvents ( ) ; static :: $ _eventsDefined [ $ className ] = true ; } }
init Initializes the model by checking the ancestor tree for the existence of various config fields and merges them.

@uses static::$_fieldsDefined Sets static::$_fieldsDefined[get_called_class()] to true after running.
@uses static::$_relationshipsDefined Sets static::$_relationshipsDefined[get_called_class()] to true after running.
@uses static::$_eventsDefined Sets static::$_eventsDefined[get_called_class()] to true after running.

@used-by static::__construct()
@used-by static::fieldExists()
@used-by static::getClassFields()
@used-by static::getColumnName()

@return void
init Initializes the model by checking the ancestor tree for the existence of various config fields and merges them .