Exemplo n.º 1
0
 public static function GetByName($p_name)
 {
     global $g_ado_db;
     $sql = "SELECT * FROM URLTypes WHERE Name=" . $g_ado_db->escape($p_name);
     $row = $g_ado_db->GetRow($sql);
     if ($row && is_array($row)) {
         $urlType = new UrlType();
         $urlType->fetch($row);
         return $urlType;
     } else {
         return null;
     }
 }