PHP Classes
elePHPant
Icontem

File: phptricksORM/Operations/Main.php

Recommend this page to a friend!
  Classes of mohammad anzawi  >  PHP PDO database class  >  phptricksORM/Operations/Main.php  >  Download  
File: phptricksORM/Operations/Main.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP PDO database class
Access databases using PDO
Author: By
Last change: Update Main.php
Date: 2 years ago
Size: 309 bytes
 

 

Contents

Class file image Download
<?php

namespace PHPtricks\Orm\Operations;

trait
Main
{
    use
Where;
    use
Cond;
    use
parseWhere;
    use
Other;

   
/**
     * get count of rows for last select query
     * @return int
     */
   
public function count()
    {
       
$results = (array)$this->results();
        return isset(
$results[0]) ? count($this->_results) : 1;
    }
}