BaseModule::getInheritedModule PHP 메소드

getInheritedModule() 보호된 메소드

Returns the module parent class if it is also an installed module.
protected getInheritedModule ( ) : mixed
리턴 mixed
    protected function getInheritedModule()
    {
        $r = new ReflectionClass($this);
        $parent = $r->getParentClass();
        if ($id = Yii::app()->moduleAPI->moduleIDFromClass('\\' . $parent->name)) {
            return Yii::app()->getModule($id);
        }
    }