Exemple #1
0
 public static function approve($id, $status)
 {
     global $db;
     if ($status == REALTY_STATUS_ACTIVE) {
         $sql = "UPDATE land l SET l.status=" . REALTY_STATUS_ACTIVE . " WHERE l.id={$id}";
         $db->query($sql);
     }
     parent::approve($id, $status);
 }
Exemple #2
0
 public static function approve($id, $status)
 {
     global $db;
     if ($status == REALTY_STATUS_ACTIVE) {
         $sql = "UPDATE street s, tenement t SET s.status=" . REALTY_STATUS_ACTIVE . " WHERE s.id=t.street_id AND t.id={$id}";
         $db->query($sql);
     }
     parent::approve($id, $status);
 }