Skip to content

Instantly share code, notes, and snippets.

@alonextou
Created January 18, 2013 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alonextou/4567466 to your computer and use it in GitHub Desktop.
Save alonextou/4567466 to your computer and use it in GitHub Desktop.
public function store($updateNulls = false){
$this->uris = implode(',', $this->uris); // implode the var
return parent::store($updateNulls);
}
public function load($pk = null, $reset = true)
{
if (parent::load($pk, $reset))
{
$this->uris = explode(',', $this->uris); // explode cboxes_var array
return true;
}
else
{
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment