diff a/protected/models/SystemStatus.php b/protected/models/SystemStatus.php (rejected hunks) @@ -111,4 +111,14 @@ 'criteria'=>$criteria, )); } + + public function notReserved() + { + $this->getDbCriteria()->mergeWith( + array( + 'condition' => 'reserved = 0', + ) + ); + return $this; + } } \ No newline at end of file