Get the extension information.

@param   boolean  $reload  Force reloading?

@return  \stdClass
7597
public function getExtension($reload = false)
	{
		if ($reload || null === $this->extension)
		{
			$this->extension = $this->loadExtension();
		}

		return clone $this->extension;
	}
1316896
public function detachAllRoles($reload = true)
    {
        event(new DetachingAllRolesFromPermission($this));
        $results = $this->roles()->detach();
        event(new DetachedAllRolesFromPermission($this, $results));

        $this->loadRoles($reload);

        return $results;
    }
1274283
protected function finalizeStructure($reload = false)
    {
        if ($reload || !$this->isStructureFinalized) {
            $template = null;
            $finalize = false;

            $obj = $this->obj();
            if ($obj instanceof TemplateableInterface) {
                $structureMetadata = $obj->templateOptionsMetadata();
            } else {
                $structureMetadata = $this->createMetadata();
            }

            $controllerInterfaces = (array)$this->controllerIdent();
            if (!empty($controllerInterfaces)) {
                $metadataLoader = $this->metadataLoader();

                $controllerStructKey = $controllerInterfaces;
                array_unshift($controllerStructKey, $obj->objType(), $obj->id());
                $controllerStructKey = 'template/structure='.$metadataLoader->serializeMetaKey($controllerStructKey);

                $structureMetadata = $this->metadataLoader()->load(
                    $controllerStructKey,
                    $structureMetadata,
                    $controllerInterfaces
                );
            }

            $storageProperty = $this->storageProperty();
            $storageProperty->setStructureMetadata($structureMetadata);

            parent::finalizeStructure();
        }
    }
786665
public function detachAllPermissions($reload = true)
    {
        event(new DetachingAllPermissions($this));
        $detached = $this->permissions()->update(['group_id' => 0]);
        event(new DetachedAllPermissions($this, $detached));

        $this->loadPermissions($reload);

        return $detached;
    }
1224836
public function getExtension()
    {
        if (version_compare(PHP_VERSION, '5.3.6') >= 0) {
            return parent::getExtension();
        } else {
            return ltrim(pathinfo($this->getAbsolutePath(), PATHINFO_EXTENSION), '.');
        }
    }
879840
protected function getClassMapLocation($class, $retry = true)
    {
        $this->checkMapInit();

        if (in_array($class, array_keys($this->getMap()))) {
            return $this->map[$class];
        }

        if ($this->isRetry() === false) {
            return false;
        }

        if ($retry === true && !$this->isMaxRetries()) {
            $this->generateMap();
            $this->increaseRetries();

            return $this->getClassMapLocation($class, false);
        }

        return null;
    }
798053
public function getColumnDetails($refresh = false)
    {
        if (empty($this->columnCache) || $refresh) {
            $query = MysqlGrammar::showTableColumns($this->getName(), true);

            $this->columnCache = $this->db->setQuery($query)->loadAll('Field');
        }

        return $this->columnCache;
    }
85132
public function extensions()
    {
        foreach ($this->extensionsToCheck as $extension) {
            $extensions[$extension] = extension_loaded($extension);
        }

        return $extensions;
    }
309262
public function getData($refresh=false)
	{
		if($this->_data===null || $refresh)
			$this->_data=$this->fetchData();
		return $this->_data;
	}
1068776
public function get_extension()
  {
    if ( $this->name ){
      if ( !isset($this->ext) ){
        if ( strpos($this->name, '.') !== false ){
          $p = str::file_ext($this->name, 1);
          $this->ext = $p[1];
          $this->title = $p[0];
        }
        else{
          $this->ext = '';
          $this->title = substr($this->name,-1) === '/' ? substr($this->name,0,-1) : $this->name;
        }
      }
      return $this->ext;
    }
    return false;
  }
729215
public function getExtensions()
    {
        $rawExtensions = isset($this->_aModule['extend']) ? $this->_aModule['extend'] : [];

        return $this->getUnifiedShopClassExtensionsForBc($rawExtensions);
    }
1109981
public function ext()
    {
        if (!$this->info) {
            $this->info();
        }
        if (isset($this->info['extension'])) {
            return $this->info['extension'];
        }

        return false;
    }
999097
protected function getExtensions()
    {
        if (file_exists(realpath(__DIR__.'/../../../../../config/twig.php'))) {
            $this->config = require realpath(__DIR__.'/../../../../../config/twig.php');
        } else {
            $this->config = require realpath(__DIR__.'/../../config/twig.php');
        }

        return isset($this->config['extensions']) ? $this->config['extensions'] : [];
    }
1086577
public function getExtension()
    {
        $pos = strrpos($this->name, '.');
        if ($pos === false) {
            return null;
        } else {
            return substr($this->name, $pos + 1);
        }
    }
372359
public static function extension($file = false) {

        if ($file && self::isFile($file)) {

            return pathinfo($file, PATHINFO_EXTENSION);
        }

        return false;
    }
308104
public function onloadCallback($dc)
	{
		if (\Input::get('act') === 'create') {
			return;
		}

		if (\Input::get('act') === 'edit') {
			$this->reloadConfig();
		}

		if ($dc->table === 'tl_content' && class_exists('CeAccess')) {
			$ceAccess = new \CeAccess;
			$ceAccess->filterContentElements($dc);
		}

		if (\Input::get('act') === 'editAll') {
			return $this->createDcaMultiEdit($dc);
		}

		$type = $this->getDcaFieldValue($dc, 'type');
		if (!$type || substr($type, 0, 5) !== 'rsce_') {
			return;
		}

		$data = $this->getDcaFieldValue($dc, 'rsce_data', true);
		if ($data && substr($data, 0, 1) === '{') {
			$this->data = json_decode($data, true);
		}

		$createFromPost = \Input::post('FORM_SUBMIT') === $dc->table;
		$tmpField = null;

		if (\Input::get('field') && substr(\Input::get('field'), 0, 11) === 'rsce_field_') {
			// Ensures that the fileTree oder pageTree field exists
			$tmpField = \Input::get('field');
		}
		elseif (
			\Input::get('target')
			&& ($target = explode('.', \Input::get('target'), 3))
			&& $target[0] === $dc->table
			&& substr($target[1], 0, 11) === 'rsce_field_'
		) {
			// Ensures that the fileTree oder pageTree field exists
			$tmpField = $target[1];
		}
		elseif (\Input::post('name') && substr(\Input::post('name'), 0, 11) === 'rsce_field_') {
			// Ensures that the fileTree oder pageTree field exists
			$tmpField = \Input::post('name');
		}

		$this->createDca($dc, $type, $createFromPost, $tmpField);
	}
981079
public function getExtendedMetadata($revision = null)
	{
		// Without revision, use current info
		if (!isset($revision)) {
			return $this->info['extmetadata'];
		}

		// Obtain the properties of the revision
		if (($info = $this->getRevision($revision)) === null) {
			return null;
		}

		return $info['extmetadata'];
	}