/** * @todo refactor */ public function bind($hash) { if (!is_array($hash)) { return 'w2p_System_Preferences::bind failed'; } else { $q = new w2p_Database_Query(); $q->bindHashToObject($hash, $this); return null; } }
public function bind($hash) { if (!is_array($hash)) { return get_class($this) . "::bind failed"; } else { $q = new w2p_Database_Query(); $q->bindHashToObject($hash, $this); $q->clear(); return null; } }