/** * if an attribute has a placeholdervalue fetch value from parent list * @see attribute() method * but if it is called from storeObject use the placeholder values */ function attributeContentToStore($attr, $noFunction = false) { return parent::attribute($attr); }
/** * Count all user who subscripe to list * * @param CjwNewsletterList $listObject * @param mixed int|array $statusIds * @return integer */ static function fetchSubscriptionListByListIdCount($listObject, $statusId = false) { $listContentObjectId = $listObject->attribute('contentobject_id'); $condArr = array('list_contentobject_id' => (int) $listContentObjectId); if ($statusId !== false) { if (is_array($statusId)) { $condArr['status'] = array($statusId); } else { $condArr['status'] = $statusId; } } $count = eZPersistentObject::count(self::definition(), $condArr, 'id'); return $count; }