コード例 #1
0
 /**
  * Finds profiler tokens for the given criteria.
  *
  * @param string $ip     The IP
  * @param string $url    The URL
  * @param string $limit  The maximum number of tokens to return
  * @param string $method The request method
  * @param string $start  The start date to search from
  * @param string $end    The end date to search to
  *
  * @return array An array of tokens
  *
  * @see http://fr2.php.net/manual/en/datetime.formats.php for the supported date/time formats
  */
 public function find($ip, $url, $limit, $method, $start, $end)
 {
     if ('' != $start && null !== $start) {
         $start = new \DateTime($start);
         $start = $start->getTimestamp();
     } else {
         $start = null;
     }
     if ('' != $end && null !== $end) {
         $end = new \DateTime($end);
         $end = $end->getTimestamp();
     } else {
         $end = null;
     }
     return $this->storage->find($ip, $url, $limit, $method, $start, $end);
 }
コード例 #2
0
 /**
  * Finds profiler tokens for the given criteria.
  *
  * @param string $ip     The IP
  * @param string $url    The URL
  * @param string $limit  The maximum number of tokens to return
  * @param string $method The request method
  * @param string $start  The start date to search from
  * @param string $end    The end date to search to
  *
  * @return array An array of tokens
  *
  * @see http://php.net/manual/en/datetime.formats.php for the supported date/time formats
  */
 public function find($ip, $url, $limit, $method, $start, $end)
 {
     return $this->storage->find($ip, $url, $limit, $method, $this->getTimestamp($start), $this->getTimestamp($end));
 }
コード例 #3
0
ファイル: Profiler.php プロジェクト: netvlies/symfony
 /**
  * Finds profiler tokens for the given criteria.
  *
  * @param string $ip     The IP
  * @param string $url    The URL
  * @param string $limit  The maximum number of tokens to return
  * @param string $method The request method
  *
  * @return array An array of tokens
  */
 public function find($ip, $url, $limit, $method)
 {
     return $this->storage->find($ip, $url, $limit, $method);
 }