function exportHash($pPaginate = FALSE) { if ($ret = parent::exportHash()) { if ($this->loadImages()) { foreach (array_keys($this->mItems) as $key) { if ($pPaginate) { if ($exp = $this->mItems[$key]->exportHash($pPaginate)) { $ret['content']['page'][$this->getItemPage($key)][] = $exp; } } else { $ret['content'][] = $this->mItems[$key]->exportHash($pPaginate); } } } } return $ret; }
function exportHash() { $ret = NULL; // make sure we have a valid image file. if (($ret = parent::exportHash()) && ($details = $this->getImageDetails())) { $ret = array_merge($ret, array('type' => $this->getContentType(), 'landscape' => $this->isLandscape(), 'has_description' => !empty($this->mInfo['data']), 'is_favorite' => $this->getField('is_favorite'))); } return $ret; }