Example #1
0
 /**
  * Returns the number of rows in the table.
  *
  * Add authorization or any logical checks for secure access to your data 
  *<em></em>
  * 
  */
 public function count($lang = 'cn', $typeId, $club = null)
 {
     if (is_string($lang)) {
         $condition['lang'] = $lang;
     }
     if ($typeId) {
         $condition['typeId'] = $typeId;
     }
     $condition['club'] = $club;
     return tdb::count(self::$tablename, array('condition' => $condition));
 }