Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | _ (string $key,... $methodArgs) |
static | register ($key, callable $function) |
static | unregister ($key) |
static | isRegistered ($key) |
static | getServiceRegistry () |
static | link ($url, $text, $attribs=null) |
static | iframe ($url, $name, $attribs=null, $noFrames='') |
static | cleanImageURL ($url) |
static | image ($file, $alt, $attribs=null, $relative=false, $returnPath=0) |
static | stylesheet ($file, $options=array(), $attribs=array()) |
static | script ($file, $options=array(), $attribs=array()) |
static | setFormatOptions ($options) |
static | date ($input='now', $format=null, $tz=true, $gregorian=false) |
static | tooltip ($tooltip, $title='', $image='tooltip.png', $text='', $href='', $alt='Tooltip', $class='hasTooltip') |
static | tooltipText ($title='', $content='', $translate=true, $escape=true) |
static | calendar ($value, $name, $id, $format='%Y-%m-%d', $attribs=array()) |
static | addIncludePath ($path='') |
Attributs publics statiques | |
static | $formatOptions = array('format.depth' => 0, 'format.eol' => "\n", 'format.indent' => "\t") |
Fonctions membres protégées statiques | |
static | extract ($key) |
static | call (callable $function, $args) |
static | includeRelativeFiles ($folder, $file, $relative, $detectBrowser, $detectDebug) |
static | addFileToBuffer ($path='', $ext='', $debugMode=false) |
static | convertToRelativePath ($path) |
Attributs protégés statiques | |
static | $includePaths = array() |
static | $registry = array() |
static | $serviceRegistry |
Fonctions membres privées statiques | |
static | checkFileOrder ($first, $second) |
|
staticfinal |
Class loader method
Additional arguments may be supplied and are passed to the sub-class. Additional include paths are also able to be specified for third-party use
string | $key | The name of helper method to load, (prefix).(class).function prefix and class are optional and can be used to load custom html helpers. |
array | $methodArgs | The arguments to pass forward to the method being called |
Références $className, $function, $key, $path, $prefix, Path\find(), et JLoader\register().
Référencé par LinkModel\activate(), FormBehavior\ajaxchosen(), Tag\ajaxfield(), Access\assetgrouplist(), Modules\batchOptions(), Select\booleanlist(), Icons\buttons(), Category\categories(), Banner\clients(), Languages\clients(), Icon\create(), FeedView\display(), DisplayController\display(), HtmlView\display(), Icon\edit(), WorkflowStage\existing(), ListHelper\genericordering(), UsersHelper\getActiveOptions(), ModulesModel\getActivePositions(), ModulesHelper\getAssignmentOptions(), TemplatesHelper\getClientOptions(), ModulesHelper\getClientOptions(), InstallerHelper\getClientOptions(), BannersHelper\getClientOptions(), MessagesModel\getComponentOptions(), InstallerHelper\getExtensionGroups(), InstallerHelper\getExtensionTypes(), ItemtypeField\getGroups(), GroupedlistField\getGroups(), WorkflowstageField\getGroups(), TimezoneField\getGroups(), TemplatestyleField\getGroups(), ChromestyleField\getGroups(), MenuitemField\getGroups(), MenuItemByTypeField\getGroups(), PlugininfoField\getInput(), AssociationField\getInput(), FieldLayoutField\getInput(), MenutypeField\getInput(), ModulelayoutField\getInput(), ComponentlayoutField\getInput(), UploaddirsField\getInput(), TemplatesListField\getInput(), OrderingField\getInput(), ModulesPositioneditField\getInput(), ModulepositionField\getInput(), ConsentBoxField\getInput(), Authentication\getKnownAuthenticators(), TosField\getLabel(), SpacerField\getLabel(), NoteField\getLabel(), ConsentBoxField\getLabel(), LoginHelper\getLanguageList(), DebugHelper\getLevelsOptions(), Pagination\getLimitBox(), StatsHelper\getList(), ArticlesArchiveHelper\getList(), ArticlesCategoryHelper\getList(), Utility\getMaxUploadSize(), ModuletagField\getOptions(), HeadertagField\getOptions(), IntegerField\getOptions(), ContentlanguageField\getOptions(), AccesslevelField\getOptions(), BranchesField\getOptions(), WorkflowComponentSectionsField\getOptions(), SearchfilterField\getOptions(), SessionhandlerField\getOptions(), CachehandlerField\getOptions(), ExtensionField\getOptions(), FontsField\getOptions(), LogtypeField\getOptions(), MenuPresetField\getOptions(), TaskTypeField\getOptions(), ContenttypesField\getOptions(), CategoryField\getOptions(), TypeField\getOptions(), SubfieldsField\getOptions(), TransitionField\getOptions(), RedirectField\getOptions(), CategoryeditField\getOptions(), CronField\getOptions(), FolderlistField\getOptions(), FilelistField\getOptions(), TextField\getOptions(), SqlField\getOptions(), LocalAdapter\getPathInformation(), ModulesHelper\getPositions(), DisplayController\getQuickiconContent(), UsersHelper\getRangeOptions(), MessagesHelper\getStateOptions(), ModulesHelper\getStateOptions(), UsersHelper\getStateOptions(), InstallerHelper\getStateOptions(), User\groups(), ListHelper\images(), Dropdown\init(), Select\integerlist(), Access\level(), Menu\linkOptions(), Links\links(), Links\linksgroups(), MediaActionPlugin\loadCss(), MediaActionPlugin\loadJs(), Finder\mapslist(), Menu\menuItemList(), Menu\menuItems(), Users\notesModal(), CoreAssetItem\onAttachCallback(), Joomla\Plugin\Editors\TinyMCE\PluginTraits\onDisplay(), Category\options(), Tag\options(), Pagination\orderDownIcon(), ListHelper\ordering(), Menu\ordering(), Pagination\orderUpIcon(), Banner\pinned(), Modules\positions(), ListHelper\positions(), ContentmapField\prepareLevel(), Languages\published(), PluginsHelper\publishedOptions(), RedirectHelper\publishedOptions(), Languages\publishedOptions(), FeedView\reconcileNames(), Date\relative(), PublishedButton\render(), FeaturedButton\render(), PopupButton\renderButton(), Bootstrap\renderModal(), WebAssetItem\resolvePath(), Text\script(), Filter\select(), ActionlogModel\sendNotificationEmails(), BreadcrumbsHelper\setSeparator(), Filter\slider(), Grid\sort(), SortableList\sortable(), Bootstrap\startTabSet(), Updatesites\state(), Manage\state(), Modules\state(), Finder\statelist(), Tag\tags(), Modules\templates(), Modules\templateStates(), Templates\thumb(), Templates\thumbModal(), Jquery\token(), ArticlesCategoryHelper\truncate(), StringHelper\truncateComplex(), Modules\types(), Finder\typeslist(), Access\usergroup(), ListHelper\users(), et Debug\xdebuglink().
|
staticprotected |
Method that searches if file exists in given path and returns the relative path. If a minified version exists it will be preferred.
string | $path | The actual path of the file |
string | $ext | The extension of the file |
boolean | $debugMode | Signifies if debug is enabled |
|
static |
Add a directory where HTMLHelper should search for helpers. You may either pass a string or an array of directories.
string | $path | A path to search. |
Références $dir, $path, et Path\clean().
|
static |
Displays a calendar control field
string | $value | The date value |
string | $name | The name of the text field |
string | $id | The id of the text field |
string | $format | The date format |
mixed | $attribs | Additional HTML attributes The array can have the following keys: readonly Sets the readonly parameter for the input tag disabled Sets the disabled parameter for the input tag autofocus Sets the autofocus parameter for the input tag autocomplete Sets the autocomplete parameter for the input tag filter Sets the filter for the input tag |
Références $app, $attribs, $autocomplete, $autofocus, $class, $data, $direction, $disabled, $format, $hint, $id, $inputvalue, $lang, $name, $onchange, $readonly, $required, $value, Factory\getApplication(), Factory\getDbo(), JPATH_ROOT, null, et LayoutHelper\render().
|
staticprotected |
|
staticprivate |
Method that takes two paths and checks if the files exist with different order
string | $first | the path of the minified file |
string | $second | the path of the non minified file |
|
staticprotected |
Method that takes a file path and converts it to a relative path
string | $path | The actual path of the file |
Références $path, JPATH_ROOT, et Uri\root().
Returns formatted date according to a given format and time zone.
string | $input | String in a format accepted by date(), defaults to "now". |
string | $format | The date format specification string (see PHP_MANUAL#date). |
mixed | $tz | Time zone to be used for the date. Special cases: boolean true for user setting, boolean false for server setting. |
boolean | $gregorian | True to use Gregorian calendar. |
Références $app, $date, $format, $input, Text\_(), elseif, Factory\getApplication(), Factory\getDate(), Factory\getLanguage(), et null.
|
staticprotected |
Method to extract a key
string | $key | The name of helper method to load, (prefix).(class).function prefix and class are optional and can be used to load custom html helpers. |
|
static |
Retrieves the service registry.
Références class, et Factory\getContainer().
|
static |
Write a <iframe>
element
string | $url | The relative URL to use for the src attribute. |
string | $name | The target attribute to use. |
array | string | $attribs | Attributes to be added to the <iframe> element |
string | $noFrames | The message to display if the iframe tag is not supported. |
Références $attribs, $name, $url, et ArrayHelper\toString().
Write a <img>
element
string | $file | The relative or absolute URL to use for the src attribute. |
string | $alt | The alt text. |
array | string | $attribs | Attributes to be added to the <img> element |
boolean | $relative | Flag if the path to the file is relative to the /media folder (and searches in template). |
integer | $returnPath | Defines the return value for the method: -1: Returns a <img> tag without looking for relative files 0: Returns a <img> tag while searching for relative files 1: Returns the file path to the image while searching for relative files |
Références $alt, $attribs, $attributes, $key, $path, $value, Joomla\Plugin\Editors\TinyMCE\PluginTraits\includeRelativeFiles(), null, et LayoutHelper\render().
|
staticprotected |
Compute the files to be included
string | $folder | Folder name to search in (i.e. images, css, js). |
string | $file | Path to file. |
boolean | $relative | Flag if the path to the file is relative to the /media folder (and searches in template). |
boolean | $detectBrowser | Flag if the browser should be detected to include specific browser files. |
boolean | $detectDebug | Flag if debug mode is enabled to include uncompressed files if debug is on. |
Loop on 1 or 2 files and break on first found. Add the content of the MD5SUM file located in the same folder to url to ensure cache browser refresh This MD5SUM file must represent the signature of the folder content
Loop on 1 or 2 files and break on first found. Add the content of the MD5SUM file located in the same folder to url to ensure cache browser refresh This MD5SUM file must represent the signature of the folder content
Références $app, $client, $extension, $path, $template, Factory\getApplication(), File\getExt(), Browser\getInstance(), JDEBUG, JPATH_ROOT, JPATH_THEMES, et File\stripExt().
|
static |
Test if the key is registered.
string | $key | The name of the key |
Références $key.
|
static |
Write a <a>
element
string | $url | The relative URL to use for the href attribute |
string | $text | The target attribute to use |
array | string | $attribs | Attributes to be added to the <a> element |
Références $attribs, $text, $url, et ArrayHelper\toString().
Référencé par ActionsDropdown\addCustomItem().
|
static |
|
static |
Write a <script>
element to load a JavaScript file
string | $file | Path to file. |
array | $options | Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') |
array | $attribs | Array of attributes. Example: array('id' => 'scriptid', 'async' => 'async', 'data-test' => 1) |
Références $attribs, $document, $options, Factory\getApplication(), et Joomla\Plugin\Editors\TinyMCE\PluginTraits\includeRelativeFiles().
|
static |
Set format related options.
Updates the formatOptions array with all valid values in the passed array.
array | $options | Option key/value pairs. |
|
static |
Write a <link>
element to load a CSS file
string | $file | Path to file |
array | $options | Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') |
array | $attribs | Array of attributes. Example: array('id' => 'scriptid', 'async' => 'async', 'data-test' => 1) |
Références $attribs, $document, $options, Factory\getApplication(), et Joomla\Plugin\Editors\TinyMCE\PluginTraits\includeRelativeFiles().
|
static |
Creates a tooltip with an image as button
string | $tooltip | The tip string. |
mixed | $title | The title of the tooltip or an associative array with keys contained in {'title','image','text','href','alt'} and values corresponding to parameters of the same name. |
string | $image | The image for the tip, if no text is provided. |
string | $text | The text for the tip. |
string | $href | A URL that will be used to create the link. |
string | $alt | The alt attribute for img tag. |
string | $class | CSS class for the tool tip. |
Références $alt, $class, $href, $image, $text, $title, $tooltip, ENT_COMPAT, image, et null.
Converts a double colon separated string or 2 separate strings to a string ready for bootstrap tooltips
string | $title | The title of the tooltip (or combined '::' separated string). |
string | $content | The content to tooltip. |
boolean | $translate | If true will pass texts through Text. |
boolean | $escape | If true will pass texts through htmlspecialchars. |
|
static |
|
static |
Référencé par Select\genericlist(), Select\groupedlist(), Select\integerlist(), et Select\options().
|
staticprotected |
|
staticprotected |
|
staticprotected |