VbzCart/docs/archive/code/globals/clsVbzTitles: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle (SMW: file) |
imported>Woozle (references) |
||
Line 2: | Line 2: | ||
[[file::VbzCart/code/files/base.cat.php]] | [[file::VbzCart/code/files/base.cat.php]] | ||
</hide> | </hide> | ||
==References== | |||
* {{l/same|clsVbzTitle}} | |||
==Code== | |||
class clsVbzTitles extends {{l/same|clsVbzTable}} { | class clsVbzTitles extends {{l/same|clsVbzTable}} { | ||
<php> | <php> |
Revision as of 02:22, 21 December 2012
<hide> [[file::VbzCart/code/files/base.cat.php]] </hide>
References
Code
class clsVbzTitles extends clsVbzTable { <php>
public function __construct($iDB) {
parent::__construct($iDB); $this->Name('cat_titles'); $this->KeyName('ID'); $this->ClassSng('clsVbzTitle');
} public function Search_forText_SQL($iFind) {
return '(Name LIKE "%'.$iFind.'%") OR (`Desc` LIKE "%'.$iFind.'%")';
} public function Search_forText($iFind) {
$sqlFilt = $this->Search_forText_SQL($iFind); $rs = $this->GetData($sqlFilt); return $rs;
}
</php> }