コード例 #1
0
ファイル: CodeScope.php プロジェクト: microcosmx/experiments
 function getVariableFromScope($variableName)
 {
     $result = $this->getVariableFromScopeInternal($variableName);
     if ($result == NULL) {
         if ($this->parentScope != NULL) {
             $result = $this->parentScope->getVariableFromScope($variableName);
         }
     }
     return $result;
 }
コード例 #2
0
 function getVariableFromScopes($variableName)
 {
     return $this->currentScope->getVariableFromScope($variableName);
 }