public function addImprintElement($type, $name, $label = null, $options = [])
    {
        $imprint = $this->getOption('imprint');
        //brak pól - pusta lista
        if (null === $imprint) {
            $imprint = [];
        }
        $imprint[] = ['type' => $type, 'name' => $name, 'label' => ($label ?: $name), 'options' => $options];
        return $this->setOption('imprint', $imprint);
    }
public function addImprintElement($type, $name, $label = null, $options = [])
    {
        $imprint = $this->getOption('imprint');
        //brak pól - pusta lista
        if (null === $imprint) {
            $imprint = [];
        }
        $imprint[] = ['type' => $type, 'name' => $name, 'label' => ($label ?: $name), 'options' => $options];
        return $this->setOption('imprint', $imprint);
    }
public function addImprintElement ( $ type , $ name , $ label = null , $ options = [ ] ) { $ imprint = $ this -> getOption ( 'imprint' ) ; //brak pól - pusta lista if ( null === $ imprint ) { $ imprint = [ ] ; } $ imprint [ ] = [ 'type' => $ type , 'name' => $ name , 'label' => ( $ label ? : $ name ) , 'options' => $ options ] ; return $ this -> setOption ( 'imprint' , $ imprint ) ; }
Dodaje pole do metryczki
@param string $type typ pola: text, checkbox, textarea, tinymce, select
@param string $name nazwa pola
@param string $label labelka pola
@param string $options opcje pola
@return \Cms\Form\Element\Plupload
Dodaje pole do metryczki