The "hublify" twig object
Hublify automatically provides a global twig-variable "hublify" through which you can easily access your data within Hublify.
For simplicity of writing, we want to refer to it as the "hublify object".
hublify functions
The hublify object provides a lot following functions and creates other interactive objects.
Articles
-
hublify.api - hublify object : function
Executes a Hublify API-call from inside a template. -
hublify.appUrl - hublify object : function
Getting the Hublify app's base url -
hublify.appUrlGotoDataset - hublify object : function
Getting the deep-link-url for a dataset (-record-list) -
hublify.appUrlGotoRecord - hublify object : function
Getting the deep-link-url for a record within the Hublify app. -
hublify.array_avg - hublify object : function
Calculates the average value of an (sub)array -
hublify.array_column - hublify object : function
Returns the values from a single column (sub key) -
hublify.array_count_real - hublify object : function
Counts the really set & not-null elements within an (sub)array. -
hublify.array_fill_column - hublify object : function
Fills a column with a value in a given multi-dimensional array -
hublify.array_get - hublify object : function
Gets a value from a (multi-dimensional) array -
hublify.array_keys - hublify object : function
Returns the values from a single column (sub key) -
hublify.array_max - hublify object : function
Gets the maximum value of an (sub)array. -
hublify.array_min - hublify object : function
Gets the minimum value of an (sub)array. -
hublify.array_normalize - hublify object : function
Calculates normalized (range-mapped) values for a (sub)array -
hublify.array_property_move - hublify object : function
Moves (copies) a property's value to another property, within an array of arrays. -
hublify.array_select - hublify object : function
Filters an array by a list of filter-properties. -
hublify.array_set - hublify object : function
Sets a value in a multi-dimensional array -
hublify.array_set_column - hublify object : function
Sets the values for a single column (sub key) in a given multi-dimensional array -
hublify.array_shuffle - hublify object : function
Shuffle an array. -
hublify.array_sortdata - hublify object : function
Sorts a 2-dim (data-) array -
hublify.array_sum - hublify object : function
Summarizes the values of an (sub)array. -
hublify.array_unset - hublify object : function
Unsets a value in a multi-dimensional array -
hublify.array2attributes - hublify object : function
Build attribute-string for usage inside a html-tag -
hublify.asset64 - hublify object : function
Gets html-inlined string of an asset -
hublify.assetResourceUrl - hublify object : function
Getting the url of a resource -
hublify.channelConfig - hublify object : function
Gets the channel's public & config details. -
hublify.coalesceEmpty - hublify object : function
EMPTY-coalescing function ( ??? ) -
hublify.coalesceNull - hublify object : function
NULL-coalescing function ( ?? ) -
hublify.contentblocks - hublify object : function
Returns a content-blocks-object. -
hublify.databoxtable - hublify object : function
A Databox-Table-object through which can read & write custom data(fields) to it. -
hublify.datamap - hublify object : function
Apply a datamapper-map onto a data-record. -
hublify.datamapList - hublify object : function
Apply a datamapper-map onto a data-list (array of records). -
hublify.datareport - hublify object : function
Generating reports for your data -
hublify.dataset - hublify object : function
Retrieving data from Hublify -
hublify.datatable - hublify object : function
Creates and returns a Hublify Datatable-Object. -
hublify.dump - hublify object : function
Dump a twig-variable -
hublify.email - hublify object : function
Instantiates and returns a Hublify-Email object. -
hublify.form - hublify object : function
A form-object that renders and validates a form dynamically. -
hublify.format_byte - hublify object : function
Formats a number with automatic byte-unit extension. -
hublify.format_datetime - hublify object : function
Formats a date, time, datetime (localized). -
hublify.format_duration - hublify object : function
Formats a number (sec) in human readable way with hours, minutes and seconds. -
hublify.format_number - hublify object : function
Formats a number with min- and max-Fraction-Digits (localized). -
hublify.format_price - hublify object : function
Formats a number in typical price-style (localized). -
hublify.format_taskduration - hublify object : function
Formats a number (secs) in Task-Duration-Style, with number of weeks, days, hours and minutes. -
hublify.getCookie - hublify object : function
gets a cookie-variable's value -
hublify.getCookies - hublify object : function
Gets all cookies sent by the browser. -
hublify.getLanguage - hublify object : function
Gets the central language-string (ISO-Code). -
hublify.getLocale - hublify object : function
Gets the central locale-string. -
hublify.header - hublify object : function
Sets the raw HTTP-Header. -
hublify.hfyUser - hublify object : function
Creates and returns a Hublify App-User-Object. -
hublify.htmlOut - hublify object : function
prepares html-source-code for the final output. -
hublify.image - hublify object : function
An image-object to create dynamically web-optimized images. -
hublify.json_decode - hublify object : function
Converts a JSON-string into an associative array. -
hublify.log - hublify object : function
Writes a log-entry to Hublify's action-log -
hublify.preg_get_matches - hublify object : function
Gets the matches of a performed regular expression match -
hublify.preg_match - hublify object : function
Perform a regular expression match -
hublify.preg_replace - hublify object : function
Perform a regular expression search and replace -
hublify.preg_split - hublify object : function
Split string by a regular expression -
hublify.properties - hublify object : function
Creates and returns a Hublify Properties-Object. -
hublify.renderStr - hublify object : function
Renders a given template-string. -
hublify.renderTemplate - hublify object : function
Renders a template within the current render-engine-environment. -
hublify.renderTemplateById - hublify object : function
Renders a template within the current render-engine-environment. -
hublify.requireDatasetRecord - hublify object : function
Enriches a dataset record's data with required fields -
hublify.setCookie - hublify object : function
Sets a cookie-variable. -
hublify.setLanguage - hublify object : function
Sets the central language-string (ISO-Code). -
hublify.setLocale - hublify object : function
Sets the central locale-string. -
hublify.siteConfig - hublify object : function
Gets the site's config details. -
hublify.siteHost - hublify object : function
Returns the current's site host- / domain-name. -
hublify.string_replace - hublify object : function
Replace (limited) occurrences of the search string with the replacement string. -
hublify.style_get - hublify object : function
Inline-CSS, build a css-style-string -
hublify.styles_merge - hublify object : function
Inline-CSS function -
hublify.styles_set - hublify object : function
Inline-CSS function -
hublify.superReplace - hublify object : function
Replaces "{% %}" in arrays or strings. -
hublify.themesInclude - hublify object : function
Gets an array with all (in ENV configured) include-paths. -
hublify.translate - hublify object : function
Translates a given i18n-string. -
hublify.uploadfile - hublify object : function
Creates an object representing an uploaded file. -
hublify.url - hublify object : function
Getting the sites url -
hublify.urlBuild - hublify object : function
Builds an URL-string from a url-components-array -
hublify.urlInfo - hublify object : function
Returns an (current) URL's components as an array -
hublify.dumpAll(_context) - hublify object : function
Dump all twig-variables from current process -
hublify.format_reportNumber - hublify object : function
Formats a number in different formats for reports (localized).