Exemple #1
0
 /**
  * Возвращает форму создания/редактирования свойства
  *
  * @param string $section
  * @return Phorm_Form
  */
 public function getPropertyForm($section = 'addproperty')
 {
     $form = new Phorm_Form('forms/control/structures.xml', $section);
     if ($element = $form->getElement('structureid')) {
         $element->setMultiOptions($this->getStructuresListAsPairs());
     }
     if ($element = $form->getElement('dictionaryid')) {
         $Dictionaries = new Phorm_Dictionaries();
         $element->setMultiOptions($Dictionaries->getDictionariesListAsPairs());
     }
     return $form;
 }