'', self::FORM_METHOD => '', self::FORM_ACTION => '', self::FORM_TARGET => '' ); private $_element; public function loadElement( $attributes ) { $this->_setElement(); $this->_setAttributes( $attributes ); return $this->getElement(); } /** * @return array */ protected function getAttributes( ) { return $this->_attributes; } /** * @param array $attributes */ private function _setAttributes( $attributes ) { foreach( $attributes as $key=>$entry ) { switch ($key) { case array_key_exists($key, $this->_attributes): $this->_element = str_replace(strtoupper($key), $entry, $this->getElement()); break; } } } /** * @return mixed */ protected function getElement( ) { return $this->_element; } /** * @param mixed $element */ private function _setElement( ) { $this->_element = '
' . "\n"; } }