method itext documentation in bbn\Appui\Option

Returns translation of an option's text

Example

X::dump($opt->itext(12)); // Result of X::_("BBN's own IDE") with fr as locale // (string) L'IDE de BBN X::dump($opt->itext('bbn_ide')); // (string) L'IDE de BBN function($code = NULL) { if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) { $val = $this->db->selectOne( $this->class_cfg['table'], $this->fields['text'], [ $this->fields['id'] => $id ] ); if ($val) { return X::_($val); } } return null; }

Returns translation of an option's text 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.