Source for file BrotherDivisions.class.php
Documentation is available at BrotherDivisions.class.php
* Содержит класс BrotherDivisions
* @copyright Energine 2006
//require_once('core/modules/share/components/ChildDivisions.class.php');
* Класс передназначен для вівода дочерних разделов текущего раздела
public function __construct($name, $module, Document $document, array $params = null) {
$params['active'] = false;
parent::__construct($name, $module, $document, $params);
$this->setParam('recordsPerPage', false);
* @return DataDescription
$result->removeFieldDescription($result->getFieldDescriptionByName('DescriptionRtf'));
* Переопределенный метод загрузки данных
$parentID = $sitemap->getDocumentInfo($id);
$parentID = $parentID['Pid'];
$data = $sitemap->getChilds($parentID);
$data = (empty($data))? false: $data;
foreach ($data as $id => $current) {
'Segment' => $current['Segment'],
'Name' => $current['Name']
|