Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Style Class Reference
+ Inheritance diagram for Style:
+ Collaboration diagram for Style:

Public Member Functions

 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 preupdate ()
 
 preInsert ()
 
 set (&$parent)
 
 getImageUrl ($img, $default)
 
 getLayoutFile ($layname, $default="")
 
 setRules (Array $filesDefinition)
 
 setRule ($fileType, $file, $definition)
 
 getRules ()
 
 getRule ($fileType, $file)
 
- Public Member Functions inherited from DbObj
 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Select ($id)
 
 getValues ()
 
 affectColumn ($fields, $reset=true)
 
 affect ($array, $more=false, $reset=true)
 
 isAffected ()
 
 Complete ()
 
 preInsert ()
 
 postInsert ()
 
 preUpdate ()
 
 postUpdate ()
 
 preDelete ()
 
 postDelete ()
 
 preSelect ($id)
 
 postSelect ($id)
 
 Add ($nopost=false, $nopre=false)
 
 modify ($nopost=false, $sfields="", $nopre=false)
 
 delete ($nopost=false)
 
 Adds (&$tcopy, $nopost=false)
 
 lw ($prop)
 
 CloseConnect ()
 
 Create ($nopost=false)
 
 postInit ()
 
 init_dbid ()
 
 exec_query ($sql, $lvl=0, $prepare=false)
 
 numrows ()
 
 fetch_array ($c, $type=PGSQL_ASSOC)
 
 update ()
 
 setError ($moreerr= '')
 
 autoUpdate ()
 
 savePoint ($point)
 
 lockPoint ($exclusiveLock, $exclusiveLockPrefix= '')
 
 setMasterLock ($useLock)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

const RULE_FLAG_PARSE_ON_RUNTIME = 1
 
 $fields
 
 $id_fields
 
 $name
 
 $description
 
 $parsable
 
 $parent
 
 $sqlcreate
 
 $dbtable = "style"
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $id_fields
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = ''
 
 $debug = false
 
 $sqlcreate
 
 $sqlinit
 
 $log
 

Protected Member Functions

 encodeRules ()
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Protected Attributes

 $rules
 
 $_expanded_rules = array()
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 
static $lockpoint = array()
 
static $sqlStrict = null
 

Detailed Description

Definition at line 16 of file Class.Style.php.

Constructor & Destructor Documentation

__construct (   $dbaccess = '',
  $id = '',
  $res = '',
  $dbid = 0 
)

Definition at line 54 of file Class.Style.php.

Member Function Documentation

encodeRules ( )
protected

Definition at line 72 of file Class.Style.php.

getImageUrl (   $img,
  $default 
)

Definition at line 82 of file Class.Style.php.

getLayoutFile (   $layname,
  $default = "" 
)

Definition at line 99 of file Class.Style.php.

getRule (   $fileType,
  $file 
)

Definition at line 131 of file Class.Style.php.

getRules ( )

Definition at line 126 of file Class.Style.php.

preInsert ( )

Definition at line 67 of file Class.Style.php.

+ Here is the call graph for this function:

preupdate ( )

Definition at line 62 of file Class.Style.php.

+ Here is the call graph for this function:

set ( $parent)

Definition at line 77 of file Class.Style.php.

setRule (   $fileType,
  $file,
  $definition 
)

Definition at line 121 of file Class.Style.php.

setRules ( Array  $filesDefinition)

Definition at line 116 of file Class.Style.php.

Field Documentation

$_expanded_rules = array()
protected

Definition at line 52 of file Class.Style.php.

$dbtable = "style"

Definition at line 50 of file Class.Style.php.

$description

Definition at line 31 of file Class.Style.php.

$fields
Initial value:
= array(
"name",
"description",
"parsable",
"rules"
)

Definition at line 20 of file Class.Style.php.

$id_fields
Initial value:
= array(
"name"
)

Definition at line 27 of file Class.Style.php.

$name

Definition at line 30 of file Class.Style.php.

$parent

Definition at line 37 of file Class.Style.php.

$parsable

Definition at line 32 of file Class.Style.php.

$rules
protected

Definition at line 33 of file Class.Style.php.

$sqlcreate
Initial value:
= "
create table style (
name text not null,
primary key (name),
description text,
parsable char default 'N',
rules text default '{}'
);
create sequence SEQ_ID_STYLE start 10000;
"

Definition at line 39 of file Class.Style.php.

const RULE_FLAG_PARSE_ON_RUNTIME = 1

Definition at line 18 of file Class.Style.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen