Ejemplo n.º 1
0
 /**
  * Returns a partial SQL string to search for all records between two times
  * occurring on the same day.
  *
  * @param string $dateString Datetime string or Unix timestamp
  * @param string $fieldName Name of database field to compare with
  * @param int $userOffset User's offset from GMT (in hours)
  * @return string Partial SQL string.
  * @access public
  * @link http://book.cakephp.org/view/1471/Formatting
  */
 function dayAsSql($dateString, $fieldName, $userOffset = null)
 {
     return parent::dayAsSql($dateString, $fieldName, $this->__userOffset($dateString, $userOffset));
 }