src/Goetas/TwitalBundle/Attribute/TranslateAttrAttribute.php 1 location
|
@@ 35-37 (lines=3) @@
|
32 |
|
|
33 |
|
$attrExpr = ParserHelper::staticSplitExpression($expression, ":"); |
34 |
|
|
35 |
|
if (!$node->hasAttribute($attrExpr[0])) { |
36 |
|
throw new \Exception("Can't find the attribute named '" . $attrExpr[0] . "'"); |
37 |
|
} |
38 |
|
|
39 |
|
$attNode = $node->getAttributeNode($attrExpr[0]); |
40 |
|
|
src/Goetas/TwitalBundle/Attribute/TranslateAttrNAttribute.php 1 location
|
@@ 35-37 (lines=3) @@
|
32 |
|
|
33 |
|
$attrExpr = ParserHelper::staticSplitExpression($expression, ":", 2); |
34 |
|
|
35 |
|
if (!$node->hasAttribute($attrExpr[0])) { |
36 |
|
throw new \Exception("non trovo l'attributo " . $attrExpr[0] . " da tradurre"); |
37 |
|
} |
38 |
|
$attNode = $node->getAttributeNode($attrExpr[0]); |
39 |
|
|
40 |
|
$transParams = isset($attrExpr[1]) ? trim($attrExpr[1], "\n\t\r []") : array(); |