예제 #1
0
파일: Update.php 프로젝트: lytc/sloths
 /**
  * @return string
  */
 public function toString()
 {
     return 'UPDATE ' . $this->tableName . ' ' . parent::toString();
 }
예제 #2
0
파일: Delete.php 프로젝트: lytc/sloths
 /**
  * @return string
  */
 public function toString()
 {
     $sql = parent::toString();
     return 'DELETE FROM ' . $this->tableName . ($sql ? ' ' . $sql : '');
 }
예제 #3
0
파일: Insert.php 프로젝트: lytc/sloths
 /**
  * @return string
  */
 public function toString()
 {
     $result = 'INSERT INTO ' . $this->tableName;
     $result .= ' ' . parent::toString();
     return $result;
 }