TemplateConverterHelper::BuildWithStatement PHP Méthode

BuildWithStatement() public static méthode

public static BuildWithStatement ( array $p_optArray ) : string
$p_optArray array
Résultat string $newTag
    public static function BuildWithStatement($p_optArray)
    {
        if ($p_optArray[0] == 'with') {
            if (isset($p_optArray[1])) {
                self::$m_withArticleType = strtolower($p_optArray[1]);
            }
            if (isset($p_optArray[2])) {
                self::$m_withBodyField = strtolower($p_optArray[2]);
            }
        } elseif ($p_optArray[0] == 'endwith') {
            self::$m_withArticleType = '';
            self::$m_withBodyField = '';
        }
        $newTag = 'DISCARD_SENTENCE';
        return $newTag;
    }