@@ -622,7 +622,7 @@ discard block |
||
| 622 | 622 | * @param mixed $data Data context |
| 623 | 623 | * @param array $arguments Additional arguments |
| 624 | 624 | * @param Object $scope |
| 625 | - * @return string Evaluated result |
|
| 625 | + * @return DBHTMLText Evaluated result |
|
| 626 | 626 | */ |
| 627 | 627 | public static function execute_template($template, $data, $arguments = null, $scope = null) { |
| 628 | 628 | $v = new SSViewer($template); |
@@ -648,6 +648,9 @@ discard block |
||
| 648 | 648 | return $v->process($data, $arguments); |
| 649 | 649 | } |
| 650 | 650 | |
| 651 | + /** |
|
| 652 | + * @param string $content |
|
| 653 | + */ |
|
| 651 | 654 | public function parseTemplateContent($content, $template="") { |
| 652 | 655 | return $this->getParser()->compileString( |
| 653 | 656 | $content, |
@@ -33,6 +33,10 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected $underlay; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param ViewableData $item |
|
| 38 | + * @param ViewableData $inheritedScope |
|
| 39 | + */ |
|
| 36 | 40 | public function __construct($item, $overlay = null, $underlay = null, $inheritedScope = null) |
| 37 | 41 | { |
| 38 | 42 | parent::__construct($item, $inheritedScope); |
@@ -58,6 +62,10 @@ discard block |
||
| 58 | 62 | $this->underlay = $underlay ? $underlay : array(); |
| 59 | 63 | } |
| 60 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $interfaceToQuery |
|
| 67 | + * @param string $variableMethod |
|
| 68 | + */ |
|
| 61 | 69 | protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) |
| 62 | 70 | { |
| 63 | 71 | $implementers = ClassInfo::implementorsOf($interfaceToQuery); |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | protected $cacheTemplate; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $content |
|
| 35 | + */ |
|
| 33 | 36 | public function __construct($content, TemplateParser $parser = null) |
| 34 | 37 | { |
| 35 | 38 | if ($parser) { |
@@ -43,6 +43,9 @@ |
||
| 43 | 43 | self::$instance = $instance; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $base |
|
| 48 | + */ |
|
| 46 | 49 | public function __construct($base = null) { |
| 47 | 50 | $this->base = $base ? $base : BASE_PATH; |
| 48 | 51 | } |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use SilverStripe\Core\Convert; |
| 4 | -use SilverStripe\Core\Config\Config; |
|
| 5 | 4 | use SilverStripe\Dev\SapphireTest; |
| 6 | 5 | use SilverStripe\View\Parsers\URLSegmentFilter; |
| 7 | 6 | |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return string |
|
| 77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 78 | 78 | */ |
| 79 | 79 | public function InternallyLabelledField() { |
| 80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return string |
|
| 77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 78 | 78 | */ |
| 79 | 79 | public function InternallyLabelledField() { |
| 80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return string |
|
| 77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 78 | 78 | */ |
| 79 | 79 | public function InternallyLabelledField() { |
| 80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use SilverStripe\Core\Convert; |
| 4 | -use SilverStripe\Core\Config\Config; |
|
| 5 | 4 | use SilverStripe\Dev\SapphireTest; |
| 6 | 5 | use SilverStripe\View\Parsers\URLSegmentFilter; |
| 7 | 6 | |