Created
January 26, 2010 14:40
-
-
Save develop7/286880 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
class Model extends BaseModel | |
{ | |
public function getPrice($format = null) | |
{ | |
return is_null($format)?$this->_get('price'):sprintf($format, $this->_get('price')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment