示例#1
0
 /**
  * Store the activity of the AutoFollow script
  *
  * @param	integer	$runtime	 - The timestamp of when the script was run (unique identifier).
  * @param	integer $recordCount - The number of records processed in this run
  * @param	integer $followCount - The number of new follows in this script
  * @return 	boolean
  */
 public function log($runtime, $recordCount, $followCount)
 {
     $dbh = dbConnection::get()->handle();
     // Add Record
     $sql = "INSERT INTO autoFollowLog\n\t\t\t\t ( runtime\n\t\t\t\t , recordCount\n\t\t\t\t , followCount)\n\t\t\t\t \n\t\t\t\tVALUES\n\t\t\t\t ('{$runtime}'\n\t\t\t\t ,'{$recordCount}'\n\t\t\t\t ,'{$followCount}')";
     $affected =& $dbh->exec($sql);
     if (PEAR::isError($affected)) {
         return false;
     }
     return true;
 }