JAdapter
class JAdapter extends JObject
Adapter Class Retains common adapter pattern functions Class harvested from joomla.installer.installer
Methods
Constructor
Sets a default value if not alreay assigned
Returns a property of the object or the default value if the property is not set.
Returns an associative array of object properties.
Get the most recent error message.
Modifies a property of the object, creating it if it does not already exist.
Set the object properties based on a named array/hash.
Get the database connector object
Set an adapter by name
Return an adapter.
Loads all adapters.
Details
at line 74
JObject
__construct(string $basepath, string $classprefix = null, string $adapterfolder = null)
Constructor
in JObject at line 56
string
__toString()
Magic method to convert the object to a string gracefully.
in JObject at line 70
mixed
def(string $property, mixed $default = null)
Sets a default value if not alreay assigned
in JObject at line 88
mixed
get(string $property, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
in JObject at line 107
array
getProperties(boolean $public = true)
Returns an associative array of object properties.
in JObject at line 133
string
getError(integer $i = null, boolean $toString = true)
Get the most recent error message.
in JObject at line 165
array
getErrors()
Return all errors, if any.
in JObject at line 180
mixed
set(string $property, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
in JObject at line 198
boolean
setProperties(mixed $properties)
Set the object properties based on a named array/hash.
in JObject at line 222
void
setError(string $error)
Add an error message.
in JObject at line 235
string
toString()
deprecated
deprecated
at line 90
object
getDBO()
Get the database connector object
at line 106
boolean
setAdapter(string $name, object $adapter = null, array $options = array())
Set an adapter by name
at line 141
object
getAdapter(string $name, array $options = array())
Return an adapter.
at line 163
void
loadAllAdapters(array $options = array())
Loads all adapters.