TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute:
TYPO3\CMS\Form\Domain\Model\Attribute\AbstractAttribute tx_form_Domain_Model_Attributes_Name

Public Member Functions

 getValueWithoutPrefix ()
 
 getValue ()
 
 setAddition ($addition)
 
 setReturnValueWithoutPrefix ($parameter)
 
- Public Member Functions inherited from TYPO3\CMS\Form\Domain\Model\Attribute\AbstractAttribute
 setValue ($value)
 
 getValue ()
 

Protected Attributes

 $addition
 
 $returnValueWithoutPrefix = FALSE
 
- Protected Attributes inherited from TYPO3\CMS\Form\Domain\Model\Attribute\AbstractAttribute
 $value
 
 $elementId
 
 $localCobj
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Attribute 'name'

Author
Patrick Broens patri.nosp@m.ck@p.nosp@m.atric.nosp@m.kbro.nosp@m.ens.n.nosp@m.l

Definition at line 22 of file NameAttribute.php.

Member Function Documentation

◆ getValue()

TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute::getValue ( )

Gets the attribute 'name'. Used with all elements Case Insensitive

This attribute names the element so that it may be referred to from style sheets or scripts.

Note: This attribute has been included for backwards compatibility. Applications should use the id attribute to identify elements. This does not apply for form objects, only the form tag

Returns
string Attribute value

Definition at line 69 of file NameAttribute.php.

References TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute\$addition, TYPO3\CMS\Form\Domain\Model\Attribute\AbstractAttribute\$value, TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute\getValueWithoutPrefix(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ getValueWithoutPrefix()

TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute::getValueWithoutPrefix ( )

◆ setAddition()

TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute::setAddition (   $addition)

Sets an additional string which will be added to the name This is necessarry in some cases like a multiple select box

Parameters
string$additionThe additional string
Returns

Definition at line 87 of file NameAttribute.php.

References TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute\$addition.

◆ setReturnValueWithoutPrefix()

TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute::setReturnValueWithoutPrefix (   $parameter)

TRUE if element is not allowed to use a prefix This is the case with the <form> tag

Parameters
boolean$parameter
Returns
void

Definition at line 99 of file NameAttribute.php.

Member Data Documentation

◆ $addition

TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute::$addition
protected

◆ $returnValueWithoutPrefix

TYPO3\CMS\Form\Domain\Model\Attribute\NameAttribute::$returnValueWithoutPrefix = FALSE
protected

Definition at line 36 of file NameAttribute.php.