예제 #1
0
파일: Delete.php 프로젝트: phpf/micro
 /** Execute DELETE query
  * @return boolean
  */
 public function execute()
 {
     $result = parent::execute();
     if ($result) {
         return $result->rowCount();
     }
     return false;
 }
예제 #2
0
파일: Update.php 프로젝트: phpf/micro
 /** Execute update query
  * @param boolean $getResultAsPdoStatement true to return the pdo statement instead of row count
  * @return int|boolean|PDOStatement
  */
 public function execute($getResultAsPdoStatement = false)
 {
     $result = parent::execute();
     if ($getResultAsPdoStatement) {
         return $result;
     }
     if ($result) {
         return $result->rowCount();
     }
     return false;
 }