GcContent\Form\Document::init PHP Method

init() public method

Initialize document form
public init ( string $url = null ) : void
$url string Url for the action
return void
    public function init($url = null)
    {
        $this->setAttribute('enctype', 'multipart/form-data');
        $this->setAttribute('class', 'relative');
        $this->setAttribute('action', $url);
    }

Usage Example

コード例 #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testInit()
 {
     $this->assertNull($this->object->init());
 }
All Usage Examples Of GcContent\Form\Document::init