Свойство | Тип | Описание | |
---|---|---|---|
$URL | The URL-instance | ||
$baseFieldName | string | The name of the field we should use to generate default-values | |
$callback | array | The callback method | |
$custom | boolean | Do we need meta custom | |
$data | array | The data, when a existing meta-record is loaded | |
$frm | The form instance | ||
$id | integer | The id, when an existing meta-record is loaded |
Метод | Описание | |
---|---|---|
__construct ( |
||
generateURL ( string $url ) : string | Generate an url, using the predefined callback. | |
getData ( ) : array | ||
getDescription ( ) : mixed | Get the current value for the meta-description; | |
getDescriptionOverwrite ( ) : null | boolean | Should the description overwrite the default | |
getId ( ) : null | integer | Get the current value for the metaId; | |
getKeywords ( ) : mixed | Get the current value for the meta-keywords; | |
getKeywordsOverwrite ( ) : null | boolean | Should the keywords overwrite the default | |
getMetaEntity ( ) : |
||
getTitle ( ) : mixed | Get the current value for the page title; | |
getTitleOverwrite ( ) : null | boolean | Should the title overwrite the default | |
getURL ( ) : null | string | Return the current value for an URL | |
getURLOverwrite ( ) : null | boolean | Should the URL overwrite the default | |
save ( boolean $update = false ) : integer | Saves the meta object | |
setURLCallback ( string $className, string $methodName, array $parameters = [] ) | Set the callback to calculate an unique URL REMARK: this method has to be public and static REMARK: if you specify arguments they will be appended | |
validate ( ) | Validates the form It checks if there is a value when a checkbox is checked |
Метод | Описание | |
---|---|---|
loadForm ( ) | Add all element into the form | |
loadMeta ( integer $id ) | Load a specific meta-record |
public __construct ( |
||
$form | An instance of Form, the elements will be parsed in here. | |
$metaId | integer | The metaID to load. |
$baseFieldName | string | The field where the URL should be based on. |
$custom | boolean | Add/show custom-meta. |
public generateURL ( string $url ) : string | ||
$url | string | The base-url to start from. |
Результат | string |
public getDescription ( ) : mixed | ||
Результат | mixed |
public getDescriptionOverwrite ( ) : null | boolean | ||
Результат | null | boolean |
public getKeywords ( ) : mixed | ||
Результат | mixed |
public getKeywordsOverwrite ( ) : null | boolean | ||
Результат | null | boolean |
public getMetaEntity ( ) : |
||
Результат |
public getTitleOverwrite ( ) : null | boolean | ||
Результат | null | boolean |
public getURLOverwrite ( ) : null | boolean | ||
Результат | null | boolean |
public validate ( ) |
protected string $baseFieldName | ||
Результат | string |
protected array $data | ||
Результат | array |
protected int $id | ||
Результат | integer |