phpCoreLib2
[ class tree: phpCoreLib2 ] [ index: phpCoreLib2 ] [ all elements ]

Class: DSQLDependable

Source Location: /DataBase/Shells/DSQLDependable.php

Interface Overview


SQL dependable interface


Methods



Class Details

[line 14]
SQL dependable interface



[ Top ]


Class Methods


method doCheckIsInTable [line 104]

boolean doCheckIsInTable( DTableShell &$shell, [string $key = ""], [string $value = ""], [string $extraWhereClause = ""], DTableShell $shell)

Cecks if pair $key $value is in table



Tags:

access:  public


Parameters:

DTableShell   $shell  
string   $key  
string   $value  
string   $extraWhereClause  
DTableShell   &$shell  

[ Top ]

method doCheckUniques [line 94]

array
doCheckUniques( DTableShell &$shell, string $editIdentifier, $fieldTypes, $fields, DTableShell $shell)

Checks for unique fields



Tags:

return:  o boolean unique_check
  • array unique_doubles
access:  public


Parameters:

DTableShell   $shell  
string   $editIdentifier  
array   $fieldTypes  
array   $fields  
DTableShell   &$shell  

[ Top ]

method doCount [line 37]

int doCount( DTableShell &$shell, [string $condition = ""], [ $params = null], DTableShell $shell)

Gets count result query



Tags:

access:  public


Parameters:

DTableShell   $shell  
string   $condition  
array   $params  
DTableShell   &$shell  

[ Top ]

method doDelete [line 69]

void doDelete( DTableShell &$shell, string $condition, [ $params = null], DTableShell $shell)

Deletes



Tags:

access:  public


Parameters:

DTableShell   $shell  
string   $condition  
array   $params  
DTableShell   &$shell  

[ Top ]

method doInsert [line 48]

void doInsert( DTableShell &$shell, $arrayData, $fieldNames, string $oneKey, int $i, DTableShell $shell, array $fieldNamed)

Makes insert



Tags:

access:  public


Parameters:

DTableShell   $shell  
array   $arrayData  
array   $fieldNamed  
string   $oneKey  
int   $i  
DTableShell   &$shell  
array   $fieldNames  

[ Top ]

method doSearch [line 82]

array doSearch( DTableShell &$shell, [string $searchValue = null], [int $itemsPerPage = PHP_DDATABASE_DEFAULT_ITEMS_PER_PAGE], [int $currentPage = DTableShell::NO_PAGING], [mixed $orderBy = ""], [mixed $excludeFields = null], [pointer $where = ""], [ &$resultCount = 0], DTableShell $shell)

Makes search



Tags:

return:  of search result
access:  public


Parameters:

DTableShell   $shell  
string   $searchValue  
int   $itemsPerPage  
int   $currentPage  
mixed   $orderBy   o string OrderFieldName ASC o array[0 => OrderFieldName, 1 => OrderDirection]
mixed   $excludeFields   string/array
pointer   $where   int $resultCount
DTableShell   &$shell  
   &$resultCount  

[ Top ]

method doSelect [line 28]

array doSelect( DTableShell &$shell, [string $conditions = null], [ $params = null], [int $page = DTableShell::NO_PAGING], [int $itemsPerPage = PHP_DDATABASE_DEFAULT_ITEMS_PER_PAGE], DTableShell $shell)

Gets select result



Tags:

return:  Data with structure
  • array tableData Data for results
  • int maxPages Max pages in paging mode
  • int conditionedCount Count in paging mode
access:  public


Parameters:

DTableShell   $shell  
string   $conditions  
array   $params  
int   $page  
int   $itemsPerPage  
DTableShell   &$shell  

[ Top ]

method doUpdate [line 60]

void doUpdate( DTableShell &$shell, $arrayData, $fieldNames, string $oneKey, int $i, [string $extraWhereClause = ""], DTableShell $shell)

Makes update



Tags:

access:  public


Parameters:

DTableShell   $shell  
array   $arrayData  
array   $fieldNames  
string   $oneKey  
int   $i  
string   $extraWhereClause  
DTableShell   &$shell  

[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:12:50 +0300 by phpDocumentor 1.4.3