/** * Counts all associated QcodoConstants * @return int */ public function CountQcodoConstants() { if (is_null($this->intId)) { return 0; } return QcodoConstant::CountByQcodoClassId($this->intId); }