public static function createSnippet($sSnptName)
    {
        $sSnptRoot = AppHelper::getInstance()->getComponentRoot('snippets');
        $SnptFile  = $sSnptRoot.DIRECTORY_SEPARATOR
            .strtolower($sSnptName).'.php';
        if (is_readable($SnptFile)) {
            return new Snippet($SnptFile);
        }
        return null;
    }
public static function createSnippet($sSnptName)
    {
        $sSnptRoot = AppHelper::getInstance()->getComponentRoot('snippets');
        $SnptFile  = $sSnptRoot.DIRECTORY_SEPARATOR
            .strtolower($sSnptName).'.php';
        if (is_readable($SnptFile)) {
            return new Snippet($SnptFile);
        }
        return null;
    }
public static function createSnippet ( $ sSnptName ) { $ sSnptRoot = AppHelper :: getInstance ( ) -> getComponentRoot ( 'snippets' ) ; $ SnptFile = $ sSnptRoot . DIRECTORY_SEPARATOR . strtolower ( $ sSnptName ) . '.php' ; if ( is_readable ( $ SnptFile ) ) { return new Snippet ( $ SnptFile ) ; } return null ; }
The method creates a snippet-object.
@param type $sSnptName The snippet name.
@return \nadir\core\Snippet|null.
The method creates a snippet - object .