TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
options Class Reference

Titan Options Class. More...

Inheritance diagram for options:
iterator array_iterator loadable array_iterator

Public Member Functions

 __construct ($option_set, $load_options=true)
 
 load ()
 
 save ()
 
- Public Member Functions inherited from iterator
 __construct ($max_count=-1, $delay=-1)
 
 max_count ($max_count=-1)
 
 iterator_delay ($delay=-1)
 
 next (&$arry, $max_count=-1)
 
 each (&$arry, $max_count=-1)
 
- Public Member Functions inherited from loadable
 __construct ($class= '', $method= '',...$params)
 
 file ($file)
 
 constructor ($class,...$params)
 
 method ($class, $method,...$params)
 
 func ($function,...$params)
 
 arguments ($type, $value)
 
 values ($name, $value= '')
 
factory_force (...$params)
 
factory (...$params)
 
execute (...$params)
 

Protected Attributes

 $timestamp = false
 timestamp object
 
 $database = false
 mysqli object
 
 $table = 'options'
 table name
 
 $option_set = ''
 Unique key.
 

Additional Inherited Members

- Protected Member Functions inherited from loadable
process_arguments ($type, array $arguments=[])
 

Detailed Description

Titan Options Class.

Class: \tl\storage\options

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Table options:

  DROP TABLE IF EXISTS `options`;
  CREATE TABLE IF NOT EXISTS `options` (
    `idx` int(11) NOT NULL,
    `option_set` char(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
    `content` text NOT NULL,
    PRIMARY KEY (`idx`),
    UNIQUE KEY `option_set` (`option_set`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

  ALTER TABLE `options`
    MODIFY `idx` int(11) NOT NULL AUTO_INCREMENT;

Constructor & Destructor Documentation

__construct (   $option_set,
  $load_options = true 
)

Constructor

Parameters
string$option_setOption Set ID
boolean$load_options(optional) Should we load the session? (default) true
Returns
session Session handling object

Member Function Documentation

load ( )

Load the option data

save ( )

Save the data


The documentation for this class was generated from the following file: