TranslatableCMSMainExtension
class TranslatableCMSMainExtension extends Extension (View source)
Properties
protected | SS_Object | $owner | The object this extension is applied to. |
from Extension |
protected | DataObject | $ownerBaseClass | The base class that this extension was applied to; $this->owner must be one of these |
from Extension |
public | $class | from Extension |
Methods
Called when this extension is added to a particular class
Helper method to strip eval'ed arguments from a string thats passed to DataObject::$extensions or Object::add_extension().
Create a new translation from an existing item, switch to this language and reload the tree.
Returns a form with all languages with languages already used appearing first.
Details
__construct()
No description
static
add_to_class(string $class, string $extensionClass, mixed $args = null)
Called when this extension is added to a particular class
setOwner(SS_Object $owner, string $ownerBaseClass = null)
Set the owner of this extension.
clearOwner()
No description
SS_Object
getOwner()
Returns the owner of this extension.
static string
get_classname_without_arguments(string $extensionStr)
Helper method to strip eval'ed arguments from a string thats passed to DataObject::$extensions or Object::add_extension().
init()
No description
updateEditForm($form)
No description
updatePageOptions($fields)
No description
createtranslation($data, $form)
Create a new translation from an existing item, switch to this language and reload the tree.
updateLink($link)
No description
updateLinkWithSearch($link)
No description
updateExtraTreeTools($html)
No description
updateLinkPageAdd($link)
No description
Form
LangForm()
Returns a form with all languages with languages already used appearing first.
selectlang($data, $form)
No description
bool
MultipleLanguages()
Determine if there are more than one languages in our site tree.
bool
IsTranslatableEnabled()
No description