Created
January 18, 2013 19:17
-
-
Save alonextou/4567466 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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