VbzCart/docs/archive/code/globals/clsVbzTitles: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | archive‎ | code‎ | globals
Jump to navigation Jump to search
imported>Woozle
(Created page with "class clsVbzTitles extends {{l/same|clsVbzTable}} { <php> public function __construct($iDB) { parent::__construct($iDB); $this->Name('cat_titles'); $this->KeyName('...")
 
m (Woozle moved page VbzCart/VbzCart/archive/code/globals/clsVbzTitles to VbzCart/docs/archive/code/globals/clsVbzTitles without leaving a redirect: correct naming (was no way to import directly to this name))
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
class clsVbzTitles extends {{l/same|clsVbzTable}} {
==References==
<php>
* {{l/same|clsVbzTitle}}
* '''extends''' {{l/same|clsVbzTable}} (which doesn't seem to be in the archive [2022-10-14])
==Code==
<syntaxhighlight lang=php>
class clsVbzTitles extends clsVbzTable {
     public function __construct($iDB) {
     public function __construct($iDB) {
parent::__construct($iDB);
parent::__construct($iDB);
Line 15: Line 19:
return $rs;
return $rs;
     }
     }
</php>
}
}
</syntaxhighlight>

Latest revision as of 01:53, 25 February 2024

References

Code

class clsVbzTitles extends clsVbzTable {
    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;
    }
}