/** * Counts all associated DlePollsAsNews * @return int */ public function CountDlePollsAsNews() { if (is_null($this->intId)) { return 0; } return DlePoll::CountByNewsId($this->intId); }