This is the class expRecord
subpackage |
Models |
---|---|
package |
Modules |
__construct(null $params = null, boolean $get_assoc = true, boolean $get_attached = true)
Throws |
|
---|
null
boolean
boolean
afterCreate()
afterDelete()
afterSave()
afterUpdate()
afterValidation()
afterValidationOnCreate()
afterValidationOnUpdate()
associateWith( $datatype, $id)
Type of associations has_and_belongs_to_many
attachItem( $item, string $subtype = '', boolean $replace = true) : boolean
string
boolean
boolean
authenticate( $password)
beforeCreate()
beforeDelete()
beforeSave()
beforeUpdate()
beforeValidation()
beforeValidationOnCreate()
beforeValidationOnUpdate()
build(mixed $params = array())
Loads Table schema data and creates new class properties based upon the fields in given table.
Additionally, if a record ID is given, that record is pulled and field values are also populated into class properties.
category |
db_record |
---|---|
uses |
Builds a data definition from existing table. |
requires |
$db |
access |
protected |
final | |
PHPUnit |
Not Defined |
global |
object $db |
mixed
array or Object for table selection
checkForAttachableItems( $params) : boolean
boolean
customerInfo()
delete(string $where = '') : boolean
string
boolean
encryptPassword( $password, null $salt = null) : string
null
string
find(string $range = 'all', null $where = null, null $order = null, null $limit = null, integer $limitstart, boolean $get_assoc = true, boolean $get_attached = true, array $except = array(), boolean $cascade_except = false) : array|integer
string
null
null
null
integer
boolean
boolean
array
boolean
array|integer
findBy( $column, $value, boolean $get_assoc = true, boolean $get_attached = true, array $except = array(), boolean $cascade_except = false) : array
boolean
boolean
array
boolean
array
findValue(string $range = 'all', string $column, string $where = null, string $order = null, boolean $distinct = false) : array|boolean
string
string
string
string
boolean
array|boolean
findWhereAttachedTo( $content_type) : array
array
getAllUsers(boolean|integer $allow_admin = 1, boolean|integer $allow_normal = 1) : array
boolean|integer
Whether or not to include admin accounts in the returned list.
boolean|integer
Whether or not to include normal accounts in the returned list.
array
getAssociatedObjects(null $obj = null) : null
Type of associations has_one has_many has_and_belongs_to_many
null
null
getAssociatedObjectsForThisModel(array $except = array(), boolean $cascade_except = false)
Type of associations has_extended_fields has_one has_many has_many_self has_and_belongs_to_many has_and_belongs_to_self
array
boolean
getAttachableItems()
getAttachableItemTables() : array
array
getEmailById(integer $id) : string
static |
---|
integer
string
getGroupMemberships()
getPoster(null $display = null) : null|string
null
null|string
getRealIpAddr()
getTimestamp(integer $type) : mixed
integer
mixed
getUserAttribution(integer $id, string $display = DISPLAY_ATTRIBUTION) : string
static |
---|
integer
string
string
getUserByEmail(string $name) : \user
Returns a basic user object, and null if no user was found.
This function does NOT perform user caching like the getUserById function does. Multiple calls to retrieve the same user result in multiple calls to the database.
node |
Model:User |
---|
string
The username of the user account to retrieve.
\user
getUserById(integer $uid) : \user
Returns a basic user object, and null if no user was found.
This function uses the exclusive global variable $SYS_USERS_CACHE to cache previously retrieved user accounts, so that subsequent requests for the same user object do not result in another trip to the database engine.
node |
Model:User |
---|
integer
The id of the user account to retrieve.
\user
getUserByName(string $name) : \user
Returns a basic user object, and null if no user was found.
This function does NOT perform user caching like the getUserById function does. Multiple calls to retrieve the same user result in multiple calls to the database.
node |
Model:User |
---|
string
The username of the user account to retrieve.
\user
getUserProfile()
globalPerm( $perm) : boolean
boolean
isActingAdmin() : boolean
boolean
isAdmin() : boolean
boolean
isLoggedIn() : boolean
boolean
isSearchable() : boolean
boolean
isSuperAdmin() : boolean
boolean
isSystemAdmin() : boolean
boolean
isTempUser()
login( $username, $password)
makeManyToManyTablename( $assoc_table) : string
string
makeSefUrl()
name() : string
string
refresh() : boolean
Throws |
|
---|
boolean
rerank( $direction, string $where = '')
string
save(boolean $validate = false, boolean $force_no_revisions = false)
boolean
boolean
saveAssociatedObjects()
Type of associations has_one
setPassword( $pass1, $pass2)
update(array|object $params = array())
array|object
updateLastLogin()
validate() : boolean
boolean
validates :
classinfo :
classname :
tablename :
identifier :
rank_by_field :
grouping_sql :
has_extended_fields :
has_one :
has_many :
has_many_self :
has_and_belongs_to_many :
has_and_belongs_to_self :
default_sort_field :
default_sort_direction :
get_assoc_for :
attachable_item_types :
attachable_items_to_save :
get_attachable_for :
validate :
do_not_validate :
supports_revisions :
needs_approval :