/** * Main magic method * @param string $name * @param array $arguments * @return mixed */ public function __call($name, $arguments) { $className = 'Commands_' . ucfirst($name); //if (class_exists($className)) { //try { $command = new Commands_Connect($this);//$className($this); $this->canExecute($command); call_user_func_array(array( $command, 'setAttribs'), $arguments); $command->prepare(); $data = $command->execute(); if ($command->opType == Commands_Abstract::CONNECT) { $this->connected = true; } if ($command->opType == Commands_Abstract::DB_OPEN) { $this->DBOpen = true; } if ($command->opType == Commands_Abstract::DB_CLOSE) { $this->DBOpen = false; $this->active = false; $this->socket = null; } return $data; // } catch (Exception $e) { // } else { // throw new OrientDBWrongCommandException('Command ' . $className . ' currenty not implemented'); // } }
/** * Main magic method * @param string $name * @param array $arguments * @return mixed */ public function __call($name, $arguments) { $className = 'Commands_' . ucfirst($name); //if (class_exists($className)) { //try { $command = new Commands_Connect($this);//$className($this); $this->canExecute($command); call_user_func_array(array( $command, 'setAttribs'), $arguments); $command->prepare(); $data = $command->execute(); if ($command->opType == Commands_Abstract::CONNECT) { $this->connected = true; } if ($command->opType == Commands_Abstract::DB_OPEN) { $this->DBOpen = true; } if ($command->opType == Commands_Abstract::DB_CLOSE) { $this->DBOpen = false; $this->active = false; $this->socket = null; } return $data; // } catch (Exception $e) { // } else { // throw new OrientDBWrongCommandException('Command ' . $className . ' currenty not implemented'); // } }
ErrorException [ Error ]: Class 'Commands_Connect' not found PKGPATH/orientdb/classes/orientdb.php @ line 294 289 public function __call($name, $arguments) 290 { 291 $className = 'Commands_' . ucfirst($name); 292 //if (class_exists($className)) { 293 //try { 294 $command = new $className($this); 295 $this->canExecute($command); 296 call_user_func_array(array( 297 $command, 298 'setAttribs'), $arguments);
It looks like you're new here. If you want to get involved, click one of these buttons!