Ferreteria/v0.3/class/tDataDesign singleKey: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
(Created page with "{{page/code/class|ferreteria}} <source lang=php> trait tDataDesign_singleKey { abstract public function GetKeyName(); // ++ UTILITY ++ // // 2017-03-18 creat...")
 
(related trait)
Line 17: Line 17:
* '''file''': {{l/ferreteria/file|data/basic/design.php}}
* '''file''': {{l/ferreteria/file|data/basic/design.php}}
* '''uses''': {{l/ferreteria/class|tDataDesign}}
* '''uses''': {{l/ferreteria/class|tDataDesign}}
* '''see also''': {{l/ferreteria/class|tMonokeyQueryableSource}}

Revision as of 14:11, 31 December 2018

Template:Page/code/class

trait tDataDesign_singleKey {
    abstract public function GetKeyName();

    // ++ UTILITY ++ //
    
    // 2017-03-18 created for EventPlex
    public function GetRows_forKeyList($sqlIDs) {
        $sqlWhere = $this->GetKeyName().' IN ('.$sqlIDs.')';
        return $this->SelectRows($sqlWhere);
    }

    // -- UTILITY -- //
}