TitanFrameworkOption::getFramework PHP Méthode

getFramework() protected méthode

Gets the framework instance currently used
Since: 1.3
protected getFramework ( ) : TitanFramework
Résultat TitanFramework
    protected function getFramework()
    {
        if (is_a($this->owner, 'TitanFrameworkAdminTab')) {
            // a tab's parent is an admin panel
            return $this->owner->owner->owner;
        } else {
            // an admin panel's parent is the framework
            // a meta panel's parent is the framework
            // a theme customizer's parent is the framework
            return $this->owner->owner;
        }
    }