-
Notifications
You must be signed in to change notification settings - Fork 35
icms_db_legacy_updater_Table
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
icms_db_legacy_updater_Table class
Information about an individual table
- Class name: icms_db_legacy_updater_Table
- Namespace:
public string $_name
- Visibility: public
public string $_structure
- Visibility: public
public array $_data
- Visibility: public
public array $_alteredFields
- Visibility: public
public array $_newFields
- Visibility: public
public array $_dropedFields
- Visibility: public
public array $_flagForDrop = \false
- Visibility: public
public array $_updateAll
- Visibility: public
public array $_deleteAll
- Visibility: public
public mixed $_existingFieldsArray = \false
- Visibility: public
public bool $force = \false
- Visibility: public
public mixed $_db
For backward compat
- Visibility: public
public \icms_db_legacy_IDatabase $db
xoopsDB database object
- Visibility: public
public array $_messages = array()
- Visibility: public
mixed icms_db_legacy_updater_Table::__construct(string name)
Constructor
- Visibility: public
- name string - <p>name of the table</p>
bool icms_db_legacy_updater_Table::exists()
Detemines if a table exists in the current db
Checks if the table already exists in the database
- Visibility: public
string icms_db_legacy_updater_Table::name()
Return the table name, prefixed with site table prefix
- Visibility: public
mixed icms_db_legacy_updater_Table::fieldExists(mixed field)
- Visibility: public
- field mixed
mixed icms_db_legacy_updater_Table::getExistingFieldsArray()
- Visibility: public
bool icms_db_legacy_updater_Table::addData()
Use to insert data in a table
- Visibility: public
array icms_db_legacy_updater_Table::getData()
Get the data array
- Visibility: public
mixed icms_db_legacy_updater_Table::setData(string data)
Add values of a record to be added
- Visibility: public
- data string - <p>values of a record</p>
mixed icms_db_legacy_updater_Table::addAlteredField(string name, string properties, mixed newname, mixed showerror)
Add a field to be added
- Visibility: public
- name string - <p>name of the field</p>
- properties string - <p>properties of the field</p>
- newname mixed
- showerror mixed
mixed icms_db_legacy_updater_Table::addNewField(string name, string properties)
Add new field of a record to be added
- Visibility: public
- name string - <p>name of the field</p>
- properties string - <p>properties of the field</p>
mixed icms_db_legacy_updater_Table::addUpdateAll(string fieldname, string fieldvalue, \icms_db_criteria_Element criteria, bool fieldvalueIsOperation)
Add item to be updated on the the table via the UpdateAll method
- Visibility: public
- fieldname string - <p>Name of the field</p>
- fieldvalue string - <p>Value to write</p>
- criteria icms_db_criteria_Element - <p>Criteria</p>
- fieldvalueIsOperation bool - <p>TRUE if fieldvalue is an operation, for example, conf_order+1</p>
void icms_db_legacy_updater_Table::addDeleteAll(\icms_db_criteria_Element criteria)
Add item to be updated on the the table via the UpdateAll method
- Visibility: public
- criteria icms_db_criteria_Element - <p>Criteria</p>
mixed icms_db_legacy_updater_Table::addDropedField(string name)
Add values of a record to be added
- Visibility: public
- name string - <p>name of the field</p>
mixed icms_db_legacy_updater_Table::setFlagForDrop()
Set the flag to drop the table
- Visibility: public
bool icms_db_legacy_updater_Table::createTable()
Use to create a table
- Visibility: public
string icms_db_legacy_updater_Table::getStructure()
Returns the table structure
- Visibility: public
mixed icms_db_legacy_updater_Table::setStructure(string structure)
Set the table structure
Example :
$table->setStructure("transactionid
int(11) NOT NULL auto_increment,
date
int(11) NOT NULL default '0',
status
int(1) NOT NULL default '-1',
itemid
int(11) NOT NULL default '0',
uid
int(11) NOT NULL default '0',
price
float NOT NULL default '0',
currency
varchar(100) NOT NULL default '',
PRIMARY KEY (transactionid
)");
- Visibility: public
- structure string - <p>table structure</p>
bool icms_db_legacy_updater_Table::dropTable()
Use to drop a table
- Visibility: public
bool icms_db_legacy_updater_Table::alterTable()
Use to alter a table
- Visibility: public
array icms_db_legacy_updater_Table::getAlteredFields()
Get fields that need to be altered
- Visibility: public
bool icms_db_legacy_updater_Table::addNewFields()
Use to add new fileds in the table
- Visibility: public
array icms_db_legacy_updater_Table::getNewFields()
Get new fields to be added
- Visibility: public
bool icms_db_legacy_updater_Table::updateAll()
Change a value for objects with a certain criteria
- Visibility: public
array icms_db_legacy_updater_Table::getUpdateAll()
Get items to be updated
- Visibility: public
bool icms_db_legacy_updater_Table::deleteAll()
delete all objects meeting the conditions
- Visibility: public
array icms_db_legacy_updater_Table::getDeleteAll()
Get items to be deleted
- Visibility: public
bool icms_db_legacy_updater_Table::dropFields()
Use to drop fields
- Visibility: public
array icms_db_legacy_updater_Table::getDropedFields()
Get fields that need to be droped
- Visibility: public