public function offsetGet($offset) { global $phpAnvil; $return = false; if (!$this->exists($offset)) { $msg = 'Database, ' . $offset . ', not found.'; $this->_addTraceInfo(__FILE__, __METHOD__, __LINE__, $msg, self::TRACE_TYPE_DEBUG); FB::log($msg); } else { $return = parent::offsetGet($offset); } return $return; }
public function offsetGet($offset) { global $phpAnvil; global $firePHP; $return = false; if (!$this->exists($offset)) { $msg = 'Controller (' . $offset . ') not found.'; $this->_addTraceInfo(__FILE__, __METHOD__, __LINE__, $msg, self::TRACE_TYPE_ERROR); FB::error($msg); } else { $return = parent::offsetGet($offset); } return $return; }
public function offsetGet($moduleRefName) { global $phpAnvil; // global $firePHP; $moduleRefName = strtolower($moduleRefName); // FB::log($offset); // FB::log($this->_items); //---- Is the module not already loaded? // if (!isset($this->_items[$offset])) { if (!$this->exists($moduleRefName)) { //---- Load the module $phpAnvil->loadModule($moduleRefName); } return parent::offsetGet($moduleRefName); }