method setAlias documentation in bbn\Appui\Option

Sets the alias of an option

Example

X::dump($opt->setAlias(26, 32)); // (int) 1 function($id, $alias = NULL) { $res = null; if ($this->check()) { $res = $this->db->updateIgnore( $this->class_cfg['table'], [ $this->fields['id_alias'] => $alias ?: null ], [ $this->fields['id'] => $id ] ); if ($res) { $this->deleteCache($id); } } return $res; }

Sets the alias of an option BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.