src/allejo/stakx/Document/DataItem.php 1 location
|
@@ 114-125 (lines=12) @@
|
| 111 |
|
/** |
| 112 |
|
* {@inheritdoc} |
| 113 |
|
*/ |
| 114 |
|
public function createJail() |
| 115 |
|
{ |
| 116 |
|
$whiteListedFunctions = array_merge(FrontMatterDocument::$whiteListedFunctions, [ |
| 117 |
|
]); |
| 118 |
|
|
| 119 |
|
$jailedFunctions = [ |
| 120 |
|
'getPageView' => 'getJailedPageView', |
| 121 |
|
'getDataset' => 'getNamespace', |
| 122 |
|
]; |
| 123 |
|
|
| 124 |
|
return (new JailedDocument($this, $whiteListedFunctions, $jailedFunctions)); |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
/// |
| 128 |
|
// JsonSerializable implementation |
src/allejo/stakx/Document/ContentItem.php 1 location
|
@@ 85-96 (lines=12) @@
|
| 82 |
|
/** |
| 83 |
|
* {@inheritdoc} |
| 84 |
|
*/ |
| 85 |
|
public function createJail() |
| 86 |
|
{ |
| 87 |
|
$whiteListedFunctions = array_merge(self::$whiteListedFunctions, [ |
| 88 |
|
]); |
| 89 |
|
|
| 90 |
|
$jailedFunctions = [ |
| 91 |
|
'getPageView' => 'getJailedPageView', |
| 92 |
|
'getCollection' => 'getNamespace', |
| 93 |
|
]; |
| 94 |
|
|
| 95 |
|
return (new JailedDocument($this, $whiteListedFunctions, $jailedFunctions)); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
/** |
| 99 |
|
* {@inheritdoc} |