Welcome Guest, Not a member yet? Register   Sign In
SqlLang (sql like methods for Language library)
#3

[eluser]xwero[/eluser]
I've tested the wiki page code, fixed errors, changed the code a bit and the examples.

The biggest changes are the added parameter for the select method that makes it possible to shorten the select by defining a prefix.
Code:
$this->lang->select('one,two','some_long_common_prefix');
And the possibility to replace one placeholder with different values per line
Code:
$this->lang->select('test_var_six,test_var_seven');
$this->lang->set(array('[0]'=>array('me','you'),'[1]'=>array('day','night')));
$this->lang->update();

It would be great if others test it too and report their findings.


Messages In This Thread
SqlLang (sql like methods for Language library) - by El Forum - 01-23-2008, 06:03 AM
SqlLang (sql like methods for Language library) - by El Forum - 01-26-2008, 02:40 AM
SqlLang (sql like methods for Language library) - by El Forum - 01-27-2008, 04:15 PM
SqlLang (sql like methods for Language library) - by El Forum - 02-02-2008, 05:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB