Lines Matching defs:variableName
206 * @param string $variableName name of variable or a callable on current context
210 public function with($variableName)
212 $value = $this->get($variableName);
223 * @param string $variableName variavle name to get from current context
229 public function get($variableName, $strict = false)
232 $variableName = trim($variableName);
235 if ($this->enableDataVariables && substr($variableName, 0, 1) == '@') {
236 return $this->getDataVariable($variableName, $strict);
240 while (substr($variableName, 0, 3) == '../') {
241 $variableName = trim(substr($variableName, 3));
259 if (!$variableName) {
266 } elseif ($variableName == '.' || $variableName == 'this') {
269 $chunks = explode('.', $variableName);
283 * @param $variableName
288 public function getDataVariable($variableName, $strict = false)
294 $variableName = trim($variableName);
297 if (substr($variableName, 0, 1) != '@') {
307 $variableName = substr($variableName, 1);
311 while (substr($variableName, 0, 3) == '../') {
312 $variableName = trim(substr($variableName, 3));
337 if (!array_key_exists($variableName, $current)) {
347 return $current[$variableName];