public function getEnumAsSqlString()
 {
     if ($this->equals(class_orm_comparator_enum::GreaterThen())) {
         return ">";
     }
     if ($this->equals(class_orm_comparator_enum::GreaterThenEquals())) {
         return ">=";
     }
     if ($this->equals(class_orm_comparator_enum::LessThen())) {
         return "<";
     }
     if ($this->equals(class_orm_comparator_enum::LessThenEquals())) {
         return "<=";
     }
     if ($this->equals(class_orm_comparator_enum::Equal())) {
         return "=";
     }
     if ($this->equals(class_orm_comparator_enum::NotEqual())) {
         return "!=";
     }
     if ($this->equals(class_orm_comparator_enum::Like())) {
         return "LIKE";
     }
     throw new class_orm_exception("Unknown sql comparator", class_exception::$level_ERROR);
 }
 /**
  * Counts the answers related to the current question
  *
  * @param bool $bitOnlyActive
  *
  * @return int
  */
 public function getAllAnswersCount($bitOnlyActive = false)
 {
     $objOrm = new class_orm_objectlist();
     if ($bitOnlyActive) {
         $objOrm->addWhereRestriction(new class_orm_objectlist_systemstatus_restriction(class_orm_comparator_enum::NotEqual(), 0));
     }
     return $objOrm->getObjectCount(__CLASS__);
 }
 /**
  * Returns the number of aspects installed in the system
  *
  * @return int
  */
 public static function getActiveObjectCount()
 {
     $objOrm = new class_orm_objectlist();
     $objOrm->addWhereRestriction(new class_orm_objectlist_systemstatus_restriction(class_orm_comparator_enum::NotEqual(), 0));
     return $objOrm->getObjectCount(__CLASS__);
 }
 /**
  * Returns the number of languages installed in the system
  *
  * @param bool $bitJustActive
  *
  * @return int
  */
 public static function getNumberOfLanguagesAvailable($bitJustActive = false)
 {
     $objOrmList = new class_orm_objectlist();
     if ($bitJustActive) {
         $objOrmList->addWhereRestriction(new class_orm_objectlist_systemstatus_restriction(class_orm_comparator_enum::NotEqual(), 0));
     }
     return $objOrmList->getObjectCount(__CLASS__);
 }