ElggPluginManifest::getActivateOnInstall PHP Méthode

getActivateOnInstall() public méthode

@return bool
public getActivateOnInstall ( ) : boolean
Résultat boolean
    public function getActivateOnInstall()
    {
        $activate = $this->parser->getAttribute('activate_on_install');
        switch (strtolower($activate)) {
            case 'yes':
            case 'true':
            case 'on':
            case 1:
                return true;
            case 'no':
            case 'false':
            case 'off':
            case 0:
            case '':
                return false;
        }
    }