Beispiel #1
0
 public function getPostByUrl($url)
 {
     $where = "Blog ='" . Database::escape($this->getId()) . "' AND Url = '" . Database::escape($url) . "'";
     $lista = BlogPost::SELECT($where);
     if (count($lista)) {
         return $lista[0];
     }
     return null;
 }