Trait IdGeneratorTrait
A trait that provides id generating methods to be used in various widget classes.
Direct Users
Properties summary
-  
$_idPrefixprotectedPrefix for id attribute.string|null -  
$_idSuffixesprotectedA list of id suffixes used in the current rendering.array 
Method Summary
-  _clearIds() protectedClear the stored ID suffixes.
 -  _domId() protectedGenerate an ID suitable for use in an ID attribute.
 -  _id() protectedGenerate an ID attribute for an element.
 -  _idSuffix() protectedGenerate an ID suffix.
 
Method Detail
_domId()source protected
_domId( string $value )
Generate an ID suitable for use in an ID attribute.
Parameters
-  string 
$value - The value to convert into an ID.
 
Returns
stringThe generated id.
_id()source protected
_id( string $name , string $val )
Generate an ID attribute for an element.
Ensures that id's for a given set of fields are unique.
Parameters
-  string 
$name - The ID attribute name.
 -  string 
$val - The ID attribute value.
 
Returns
stringGenerated id.
_idSuffix()source protected
_idSuffix( string $val )
Generate an ID suffix.
Ensures that id's for a given set of fields are unique.
Parameters
-  string 
$val - The ID attribute value.
 
Returns
stringGenerated id suffix.
Properties detail
    © 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
    https://api.cakephp.org/3.8/class-Cake.View.Helper.IdGeneratorTrait.html