HIGH_PRIORITY
HIGH_PRIORITY
formField | |
mfCategoryNodeInterface | |
mfIndexable | |
module | |
plugin |
altLangField | |
backend | |
categoryNodes | |
categoryTrees | |
checkboxField | |
colorField | |
contact | Classe de base Gérant les enregistrements de base de donnée |
contacts | |
contactsPlugin | |
countriesFilter | Base class managing simple forms without database recording of their values |
dateField | |
dateTimeField | |
dbForm | Base class managing simple forms without database recording of their values |
dbManager | Classe de base gérant les plugins |
dbRecord | Classe de base Gérant les enregistrements de base de donnée |
event | Classe de base Gérant les enregistrements de base de donnée |
events | |
eventsPlugin | |
ExceptionThrower | Utility for catching PHP errors and converting them to an exception that can be caught at runtime |
fieldset | |
filesField | |
formsManager | |
franceFilter | Base class managing simple forms without database recording of their values |
frontend | |
hiddenField | |
htmlField | |
inputField | |
installToolLoginForm | Base class managing simple forms without database recording of their values |
l10nManager | Classe de base Gérant les plugins |
manageCountries | |
manageFrance | |
manageSearchIndex | |
mf | |
mfAuthentification | |
mfAuthentificationPlugin | |
mfCategoriesPlugin | |
mfCategoryNode | Classe de base Gérant les enregistrements de base de donnée |
mfCategoryTree | Classe de base Gérant les enregistrements de base de donnée |
mfColissimoFees | Classe de base Gérant les enregistrements de base de donnée |
mfCountry | Classe de base Gérant les enregistrements de base de donnée |
mfCountryDataPlugin | |
mfDepartement | Classe de base Gérant les enregistrements de base de donnée |
mfFrance | Classe de base Gérant les enregistrements de base de donnée |
mfSearchEnginePlugin | |
mfSearchIndex | Classe de base Gérant les enregistrements de base de donnée |
mfUser | Classe de base Gérant les enregistrements de base de donnée |
mfUserGroup | Classe de base Gérant les enregistrements de base de donnée |
mfUsersPlugin | |
microtemplateField | |
page | Classe de base Gérant les enregistrements de base de donnée |
pages | |
pagesPlugin | |
pluginManager | Classe de base Gérant les plugins |
portfolio | |
portfolioCategory | Classe de base Gérant les enregistrements de base de donnée |
portfolioItem | Classe de base Gérant les enregistrements de base de donnée |
portfolioPlugin | |
radioField | |
recordSelectField | |
richTextField | |
searchIndexer | |
searchIndexFilter | Base class managing simple forms without database recording of their values |
selectField | |
siteInfo | Classe de base Gérant les enregistrements de base de donnée |
siteInfosPlugin | |
templateDataField | |
templateNameField | |
textareaField | |
timeField | |
treeSelectorField | |
urlInputField | |
urlRewriter | |
urlRewriterPlugin | |
userGroups | |
users | |
usersForm | Base class managing simple forms without database recording of their values |
webSearch | |
welcome | |
welcomePlugin |
array_merge_recursive_distinct(array $array1, array $array2) : array
array_merge_recursive does indeed merge arrays, but it converts values with duplicate keys to arrays rather than overwriting the value in the first array with the duplicate value in the second array, as array_merge does. I.e., with array_merge_recursive, this happens (documented behavior):
array_merge_recursive(array('key' => 'org value'), array('key' => 'new value'));
=> array('key' => array('org value', 'new value'));
array_merge_recursive_distinct does not change the datatypes of the values in the arrays. Matching keys' values in the second array overwrite those in the first array, as is the case with array_merge, i.e.:
array_merge_recursive_distinct(array('key' => 'org value'), array('key' => 'new value'));
=> array('key' => array('new value'));
Parameters are passed by reference, though only for performance reasons. They're not altered by this function.
array | $array1 | |
array | $array2 |
crop( $image, integer|array $x1, integer $y1, integer $x2, integer $y2, $originalWidth, $originalHeight) : \ImageManipulator
Crop image
$image | ||
integer|array | $x1 | Top left x-coordinate of crop box or array of coordinates |
integer | $y1 | Top left y-coordinate of crop box |
integer | $x2 | Bottom right x-coordinate of crop box |
integer | $y2 | Bottom right y-coordinate of crop box |
$originalWidth | ||
$originalHeight |
for a fluent interface
getImageResizedDimensions( $orig_width, $orig_height, $max_width, $max_height) : array
Computes the dimension of a resized image without actually processing the image
$orig_width | ||
$orig_height | ||
$max_width | maximum width after resizing : if the image is wider than higher this limit will be used. |
|
$max_height | maximum height after resizing : if the image is higher than wider this limit will be used. |
width computed width as 'width' and computed height as 'height' indices
makeHTMLActionLink( $action, string $recordClass, $recordUid, $includeCssAndJs = false, $parentUid)
Creates a link to ajax-core-html.php with secured form parameters
@param string $action an action available from ajax-core-html.php, such as 'editRecord' or 'viewRecord'
$action | ||
string | $recordClass | the class of the record to process @param int|string $recordUid the uid of the record to be edited. @param boolean $includeCssAndJs tell mindflow to include all required CSS and JS code. This is usefull if the given HTML is displayed in an open window instead of an AJAX Window @return string the link to get the content action executed |
$recordUid | ||
$includeCssAndJs | ||
$parentUid |
makeJSONActionLink( $action, string $recordClass, $recordUid)
Creates a link to ajax-core-json.php with secured form parameters
@param string $action an action available from ajax-core-html.php, such as 'editRecord' or 'viewRecord'
$action | ||
string | $recordClass | the class of the record to process @param int|string $recordUid the uid of the record to be edited. @return string the link to get the content action executed |
$recordUid |
resizeImage( $filename, $max_width, $max_height) : \image
Resize an image and keep the proportions
$filename | the file to be processed |
|
$max_width | maximum width after resizing : if the image is wider than higher this limit will be used. |
|
$max_height | maximum height after resizing : if the image is higher than wider this limit will be used. |
truncateHtml(string $text, integer $length = 100, string $ending = '...', boolean $exact = false, boolean $considerHtml = true) : string
truncateHtml can truncate a string up to a number of characters while preserving whole words and HTML tags
string | $text | String to truncate. |
integer | $length | Length of returned string, including ellipsis. |
string | $ending | Ending to be appended to the trimmed string. |
boolean | $exact | If false, $text will not be cut mid-word |
boolean | $considerHtml | If true, HTML tags would be handled correctly |
Trimmed string.