Ejemplo n.º 1
0
 protected function createData()
 {
     $result = parent::createData();
     if (in_array($this->getType(), array(self::COMPONENT_TYPE_FORM_ADD, self::COMPONENT_TYPE_FORM_ALTER))) {
         $info = E()->getMap()->getDocumentInfo($this->document->getID());
         $field = $result->getFieldByName('smap_id');
         for ($i = 0; $i < sizeof(E()->getLanguage()->getLanguages()); $i++) {
             $field->setRowProperty($i, 'segment', E()->getMap()->getURLByID($this->document->getID()));
             $field->setRowData($i, $info['Name']);
         }
     }
     return $result;
 }
Ejemplo n.º 2
0
 protected function createData()
 {
     return LinkingEditor::createData();
 }