/** * Method to get an array of data items. * * @return mixed An array of data items on success, false on failure. * * @since 12.2 */ public function getItems() { $items = parent::getItems(); $table = RedcoreHelpersTranslation::getTranslationTable(); $columns = (array) $table->columns; if (!empty($items)) { foreach ($items as $itemKey => $item) { $items[$itemKey]->translationStatus = RedcoreHelpersTranslation::getTranslationItemStatus($item, $columns); } } return $items; }
/** * Method to get an array of data items. override to add content items * * @return mixed An array of data items on success, false on failure. * * @since 1.2 */ public function getItems() { $items = parent::getItems(); return $items; }
/** * Method to get an array of data items. * * @return mixed An array of data items on success, false on failure. * * @since 1.2 */ public function getItems() { // We are loading all webservice XML files with this $this->setXmlFiles(); $items = parent::getItems(); if (!empty($items)) { foreach ($items as $item) { $item->xml = !empty($this->installedXmlFiles[$item->client][$item->name][$item->version]) ? $this->installedXmlFiles[$item->client][$item->name][$item->version] : false; $item->scopes = json_decode($item->scopes, true); } } return $items; }