/** * Returns the array of CustomFieldValue objects * * @return An array of CustomFieldValue objects */ function getFields() { if ($this->_fields == null) { // get the custom fields $customFields = new CustomFieldsValues(); $fields = $customFields->getArticleCustomFieldsValues($this->getId(), $this->getBlog()); $this->setFields($fields); } return $this->_fields; }