コード例 #1
0
ファイル: StringInput.php プロジェクト: hason/phpcr-shell
 /**
  * {@inheritDoc}
  */
 public function __construct($command)
 {
     $this->rawCommand = trim($command);
     if (strpos(strtolower($this->rawCommand), 'select') === 0) {
         $command = 'select' . substr($command, 6);
         $this->isQuery = true;
     }
     if (strpos(strtolower($this->rawCommand), 'update') === 0) {
         $command = 'update' . substr($command, 6);
         $this->isQuery = true;
     }
     if (strpos(strtolower($this->rawCommand), 'delete') === 0) {
         $command = 'delete' . substr($command, 6);
         $this->isQuery = true;
     }
     parent::__construct($command);
 }