Elgg  Version 3.0
Variables
sample_installer.php File Reference

Go to the source code of this file.

Variables

 $enabled = false
 Sample cli installer script. More...
 
 $params
 
if(!$enabled) if (PHP_SAPI!== 'cli')
 Interates through each element of an array and calls callback a function. More...
 
 $installer = new ElggInstaller()
 

Variable Documentation

$enabled = false

Sample cli installer script.

Definition at line 8 of file sample_installer.php.

$installer = new ElggInstaller()

Definition at line 47 of file sample_installer.php.

$params
Initial value:
= [
'dbuser' => ''

Definition at line 11 of file sample_installer.php.

if
Initial value:
=> '',
'dbname' => '',
'sitename' => '',
'siteemail' => '',
'wwwroot' => '',
'dataroot' => '',
'displayname' => '',
'email' => '',
'username' => '',
'password' => '',
]

Interates through each element of an array and calls callback a function.

The callback should accept the following arguments: element - The current element index - The current index

This is different to Array.every in that the callback's return value is ignored and every element of the array will be parsed.

Parameters
{Function}callback
Returns
{Void}

Definition at line 40 of file sample_installer.php.