SC_BaseObject
in package
Provides base functionality for all SimplOn classes.
This class offers common utilities like:
- Retrieving class name information (full name, prefix, words).
- Introspecting methods and attributes.
- Automatic getter and setter generation via the magic __call method for both instance and static properties.
- Checking for the existence of attributes and properties.
- Clearing property values.
- Generating unique instance identifiers for UI linking.
Tags
Table of Contents
- __call() : mixed
- Auto Makes the Setters and Getters
- clear() : mixed
- Clears the value of a property or attribute
- getClass() : string
- Returns the object's class
- hasAttribute() : bool
- Checks if a an object has a specific method
- hasProperty() : bool
- Checks if a an object has a specific property
- instanceId() : mixed
- Run time id of the object used to creat ids to link things in the interface like Labels and Inputs
- ObjectId() : mixed
- Class and instance id
Methods
__call()
Auto Makes the Setters and Getters
public
__call( $name, $arguments) : mixed
Parameters
Return values
mixed —clear()
Clears the value of a property or attribute
public
clear(string $name) : mixed
Parameters
- $name : string
Return values
mixed —getClass()
Returns the object's class
public
getClass() : string
Return values
string —The short class name of the object instance.
hasAttribute()
Checks if a an object has a specific method
public
hasAttribute(mixed $attribute) : bool
Parameters
- $attribute : mixed
Return values
bool —hasProperty()
Checks if a an object has a specific property
public
hasProperty(string $propName) : bool
Parameters
- $propName : string
Return values
bool —instanceId()
Run time id of the object used to creat ids to link things in the interface like Labels and Inputs
public
instanceId() : mixed
Return values
mixed —ObjectId()
Class and instance id
public
ObjectId() : mixed