API results for “template”

51 to 75 of 145

$page->getAccessTemplate(string $type = 'view') class.method
Returns the template from which role/access settings are inherited from

viewable($field = '', $checkTemplateFile = true) class.method
Returns true if the page (and optionally field) is viewable by the current user, false if not.

Fieldtype::getConfigAllowContext(Field $field) class.method
Return an array of configuration field names from that are allowed in fieldgroup/template context

Fieldtype::deleteTemplateField(Template $template, Field $field) class.method
Delete the given Field from all pages using the given template, without loading those pages.

Inputfield::getConfigAllowContext(Field $field) class.method
Return a list of config property names allowed for fieldgroup/template context

Process::installPage(string $name = '', $parent = null, string $title = '', $template = 'admin', array $extras = []) class.method
Install a dedicated page for this Process module and assign it this Process

Pageimage::render($markup = '', $options = []) class.method
Render markup for this image (optionally using a provided markup template string and/or image size options)

Pageimages::render($markup = '', $options = []) class.method
Render markup for all images here (optionally using a provided markup template string and/or image size options)

$field->getContext($for, string $namespace = '', bool $has = false) class.method
Get this field in context of a Page/Template

$field->hasContext($for, string $namespace = '') class.method
Does this field have context settings for given Page/Template?

$field->getTemplates(bool $getCount = false) class.method
Return the list of of Templates using this field.

Fieldgroup::getTemplates() class.method
Get a list of all templates using this Fieldgroup

Fieldgroup::getNumTemplates() class.method
Get the number of templates using this Fieldgroup

Template::getRoles(string $type = 'view') class.method
Get the role pages that are part of this template

Template::hasRole($role, $type = 'view') class.method
Does this template have the given Role?

Template::setRoles($value, string $type = 'view') class.method
Set roles for this template

Template::addRole($role, string $type = 'view') class.method
Add a Role to this template for view, edit, create, or add permission

Template::removeRole($role, string $type = 'view') class.method
Remove a Role to this template for view, edit, create, or add permission

Template::addPermissionByRole($permission, $role, bool $test = false) class.method
Add a permission that applies to users having a specific role with pages using this template

Template::revokePermissionByRole($permission, $role, bool $test = false) class.method
Revoke a permission that applies to users having a specific role with pages using this template

Template::hasField($name) class.method
Does this template have the given Field?

Template::urlSegments($value = '~') class.method
Get or set allowed URL segments

Template::isValidUrlSegmentStr(string $urlSegmentStr) class.method
Is the given URL segment string allowed according to this template’s settings?

Template::setFieldgroup(Fieldgroup $fieldgroup) class.method
Set this Template's Fieldgroup

Template::getNumPages() class.method
Return the number of pages used by this template.