Difference between revisions of "VbzCart/archive/code/globals/clsVbzTitles"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< VbzCart‎ | archive‎ | code‎ | globals
Jump to navigation Jump to search
(SMW: file)
(more obsessive tidying)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<hide>
+
==References==
[[file::VbzCart/code/files/base.cat.php]]
+
* {{l/same|clsVbzTitle}}
</hide>
+
* '''extends''' {{l/same|clsVbzTable}} (which doesn't seem to be in the archive [2022-10-14])
class clsVbzTitles extends {{l/same|clsVbzTable}} {
+
==Code==
<php>
+
<syntaxhighlight lang=php>
 +
class clsVbzTitles extends clsVbzTable {
 
     public function __construct($iDB) {
 
     public function __construct($iDB) {
 
parent::__construct($iDB);
 
parent::__construct($iDB);
Line 18: Line 19:
 
return $rs;
 
return $rs;
 
     }
 
     }
</php>
 
 
}
 
}
 +
</syntaxhighlight>

Latest revision as of 13:28, 14 October 2022

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;
    }
}