phalconplus Documentation v1.0.0-rc-1
Class
Class PhalconPlus Base

# AbstractModule

    //
        protected di = null;

        // <\PhalconPlus\Base\ModuleDef>
        protected def = null;

        public function __construct(<\Phalcon\DI> di, <\PhalconPlus\Base\ModuleDef> def = null)
        {
            let this->di = di;
            let this->def = def; // Module should have it's definition.
        }

        public function getDef() -> <\PhalconPlus\Base\ModuleDef>
        {
            return this->def;
        }

        public function isPrimary()
        {
            return this->def->getIsPrimary() == true; // Report is primary or not
        }

        abstract public function registerAutoloaders();
        abstract public function registerServices();
    }