コード例 #1
0
ファイル: Group.php プロジェクト: gsouf/uform
 /**
  * @inheritdoc
  */
 public function getName($prenamed = null, $dottedNotation = false)
 {
     if (null === $this->name) {
         return $this->prename;
     }
     return parent::getName($prenamed, $dottedNotation);
 }
コード例 #2
0
ファイル: Element.php プロジェクト: gsouf/uform
 /**
  * Internal use only. Should be called when a change occurs
  * on the parents and the info related to the parent need to be updated
  */
 public function refreshParent()
 {
     if ($this->parent) {
         $this->setNamespace($this->parent->getName(true, true));
         $this->setInternalNamespace($this->parent->getInternalName(true));
     }
 }