Class we_app_Model

Description

Base class for app models

Located in /app/Model.php (line 28)

we_core_AbstractObject
   |
   --we_core_AbstractModel
      |
      --we_app_Model
Variable Summary
string $ContentType
integer $ID
boolean $IsFolder
integer $ParentID
string $Path
string $Text
string $_appName
Method Summary
void __construct (string $table)
void delete ()
void deleteChilds ()
boolean filenameNotValid ()
boolean hasRequiredFields (string &$failed)
boolean isAllowedForUser ()
boolean isRequiredField (string $fieldname)
boolean isSelf ()
boolean pathExists (string $path)
void setFields (array $fields)
void setIsFolder (boolean $value)
void setPath ([string $path = ''])
void updateChildPaths (string $oldpath)
string _evalPath ([integer $id = 0])
Variables
string $ContentType = '' (line 64)

ContentType attribute

  • access: public
integer $ID = 0 (line 36)

id attribute

  • access: public
boolean $IsFolder (line 71)

IsFolder attribute

  • access: public
integer $ParentID = 0 (line 50)

ParentID attribute

  • access: public
string $Path = '' (line 57)

Path attribute

  • access: public
string $Text = '' (line 43)

Text attribute

  • access: public
string $_appName = '' (line 78)

_appName attribute

  • access: protected
array $_requiredFields = array() (line 85)

_requiredFields attribute

  • access: protected

Inherited Variables

Inherited from we_core_AbstractModel

we_core_AbstractModel::$_metadata
we_core_AbstractModel::$_persistentSlots
we_core_AbstractModel::$_primaryKey
we_core_AbstractModel::$_table
Methods
Constructor __construct (line 95)

Constructor

Set table and load persistents

void __construct (string $table)
  • string $table

Redefinition of:
we_core_AbstractModel::__construct()
Constructor
delete (line 281)

deletes entry

  • access: public
void delete ()

Redefinition of:
we_core_AbstractModel::delete()
delete entry from database
deleteChilds (line 263)

delete childs

  • access: public
void deleteChilds ()
filenameNotValid (line 105)

validates the Text

  • access: public
boolean filenameNotValid ()
hasRequiredFields (line 127)

check if required fields are available

  • access: public
boolean hasRequiredFields (string &$failed)
  • string &$failed: (reference) $failed
isAllowedForUser (line 195)

check permissions of user

  • access: public
boolean isAllowedForUser ()
isRequiredField (line 116)

check if field is required

  • access: public
boolean isRequiredField (string $fieldname)
  • string $fieldname
isSelf (line 167)

check if ParentId is equal to Id

  • access: public
boolean isSelf ()
pathExists (line 157)

check if path exists

  • access: public
boolean pathExists (string $path)
  • string $path
setFields (line 301)

set Fields

  • access: public
void setFields (array $fields)
  • array $fields

Redefinition of:
we_core_AbstractModel::setFields()
setIsFolder (line 253)

set IsFolder

  • access: public
void setIsFolder (boolean $value)
  • boolean $value
setPath (line 143)

set path

  • access: public
void setPath ([string $path = ''])
  • string $path
updateChildPaths (line 232)

update the child paths

  • access: public
void updateChildPaths (string $oldpath)
  • string $oldpath
_evalPath (line 206)

returns the path of given id

  • access: protected
string _evalPath ([integer $id = 0])
  • integer $id

Inherited Methods

Inherited From we_core_AbstractModel

we_core_AbstractModel::__construct()
we_core_AbstractModel::delete()
we_core_AbstractModel::getPersistentSlots()
we_core_AbstractModel::getTable()
we_core_AbstractModel::load()
we_core_AbstractModel::loadPersistents()
we_core_AbstractModel::save()
we_core_AbstractModel::setFields()
we_core_AbstractModel::setPersistentSlots()
we_core_AbstractModel::_getPKCondition()

Inherited From we_core_AbstractObject

we_core_AbstractObject::__construct()

Documentation generated on Mon, 01 Sep 2008 11:35:42 +0200 by phpDocumentor 1.4.0