/** * * @param int $pk * @return object */ function getItem($pk = null) { $item = parent::getItem($pk); $id = $item->id; if (isset($id) && (int) $id > 0) { if (!FrontJntHanhphucHelper::checkUserPermissionOnItem($id, '#__hp_albums')) { exit; } } $item->other_images = FrontJntHanhphucHelper::getImages($item->id, 'albums'); return $item; }