/** * Counts all associated ChildNarroFiles * @return int */ public function CountChildNarroFiles() { if (is_null($this->intFileId)) { return 0; } return NarroFile::CountByParentId($this->intFileId); }