◆ bundledComponents()
Bundled components
- Returns
- array
◆ checkRequirments()
static checkRequirments |
( |
|
$element | ) |
|
|
static |
Check component requirments
- Parameters
-
string | $element | A valid component xml file |
- Returns
- false|array
◆ delete()
Delete component
- Returns
- boolean
Reimplemented from OssnDatabase.
◆ DISABLE()
Disable component
- Returns
- boolean
◆ enable()
Enable Component
- Returns
- boolean
◆ getActive()
getActive |
( |
|
$ids_only = false | ) |
|
Get active components
- Returns
- active components;
◆ getbyName()
Get component
- Note
- This id is not a package id
- Returns
- integer|false;
◆ getCom()
Get component details
@params string $name Component id;
- Returns
- false|object
◆ getComponents()
Get components list
- Returns
- array
◆ getComponentsDir()
Get components from compnents directory
- Returns
- array
◆ getComSettings()
getComSettings |
( |
|
$component | ) |
|
Get Component Settings
@params string $component Component id
- Note
- This method is deprecated and will be removed in Ossn v4.0
- Returns
- false|array;
◆ getSettings()
getSettings |
( |
|
$component | ) |
|
Get Component Settings
- Parameters
-
string | $component | Component id |
- Returns
- false|array;
◆ inUseBy()
Check if $comId is defined as required in XML of other active component
@params string $comId Component id;
- Returns
- array
◆ isActive()
Check if component is active or not
- Returns
- boolean
◆ isOld()
Check if component is older than 3.x
- Parameters
-
string | $element | Component xml string. |
- Returns
- boolean
◆ loadComs()
Load all active components
- Returns
- false|null startup files;
◆ newCom()
Insert a new component to system
- Returns
- boolean
◆ requiredComponents()
Required Components
Admin can't disable required components;
- Returns
- array
◆ restorePref()
restorePref |
( |
string |
$com_id | ) |
|
Restore preference
- Parameters
-
string | $com_id | Component ID |
- Returns
- boolean
◆ savePref()
savePref |
( |
string |
$com_id | ) |
|
Keep preference on next upload
- Parameters
-
string | $com_id | Component ID |
- Returns
- boolean
◆ setSettings()
setSettings |
( |
|
$component, |
|
|
array |
$vars = array() |
|
) |
| |
Set component settings
setSettings should have array() to accept values #434
- Parameters
-
string | $component | Component id |
| array | vars Setting (two-dem array) |
- Returns
- boolean
◆ total()
Count total components
- Returns
- integer
◆ upload()
Upload component
Requires component package file,
- Returns
- boolean
The documentation for this class was generated from the following file:
- source/classes/OssnComponents.php