@@ -3,28 +3,28 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Mvc Model |
| 5 | 5 | * |
| 6 | - * <?=$this->config->last_modify."\n"?> |
|
| 6 | + * <?=$this->config->last_modify . "\n"?> |
|
| 7 | 7 | * |
| 8 | 8 | * @package <?=$objTables->getNamespace()?>\Peer |
| 9 | 9 | * @subpackage Model |
| 10 | - * @author <?=$this->config->author."\n"?> |
|
| 10 | + * @author <?=$this->config->author . "\n"?> |
|
| 11 | 11 | * |
| 12 | - * @copyright <?=$this->config->copyright."\n"?> |
|
| 13 | - * @license <?=$this->config->license."\n"?> |
|
| 14 | - * @link <?=$this->config->link."\n"?> |
|
| 15 | - * @version <?=$this->config->version."\n"?> |
|
| 12 | + * @copyright <?=$this->config->copyright . "\n"?> |
|
| 13 | + * @license <?=$this->config->license . "\n"?> |
|
| 14 | + * @link <?=$this->config->link . "\n"?> |
|
| 15 | + * @version <?=$this->config->version . "\n"?> |
|
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | namespace <?=$objTables->getNamespace()?>\Peer; |
| 19 | 19 | |
| 20 | -class <?=\Classes\Maker\AbstractMaker::getClassName ( $objTables->getName () )?> extends \<?=$this->config->namespace?$this->config->namespace."\\":""?>Models\<?=$objMakeFile->getFilesFixeds('parentClass')->getFileName() . "\n"?> |
|
| 20 | +class <?=\Classes\Maker\AbstractMaker::getClassName($objTables->getName())?> extends \<?=$this->config->namespace ? $this->config->namespace . "\\" : ""?>Models\<?=$objMakeFile->getFilesFixeds('parentClass')->getFileName() . "\n"?> |
|
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * Name of the object for static instance |
| 24 | 24 | * |
| 25 | 25 | * @var string $className |
| 26 | 26 | */ |
| 27 | - protected static $className = '<?=$objTables->getNamespace()?>\<?=$this->getClassName ( $objTables->getName () )?>'; |
|
| 27 | + protected static $className = '<?=$objTables->getNamespace()?>\<?=$this->getClassName($objTables->getName())?>'; |
|
| 28 | 28 | |
| 29 | 29 | /* @TODO Codifique aqui */ |
| 30 | 30 | } |
| 31 | 31 | \ No newline at end of file |
@@ -20,49 +20,49 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | private $fileName; |
| 22 | 22 | |
| 23 | - private function __construct (){ } |
|
| 23 | + private function __construct() { } |
|
| 24 | 24 | |
| 25 | - public static function getInstance ( $args = array () ) |
|
| 25 | + public static function getInstance($args = array()) |
|
| 26 | 26 | { |
| 27 | 27 | $obj = new FilesFixeds(); |
| 28 | - if ( key_exists ( 'tpl' , $args ) ) |
|
| 28 | + if (key_exists('tpl', $args)) |
|
| 29 | 29 | { |
| 30 | - $obj->setTpl ( $args[ 'tpl' ] ); |
|
| 30 | + $obj->setTpl($args['tpl']); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - if ( key_exists ( 'name' , $args ) ) |
|
| 33 | + if (key_exists('name', $args)) |
|
| 34 | 34 | { |
| 35 | - $obj->setFileName ( $args[ 'name' ] ); |
|
| 35 | + $obj->setFileName($args['name']); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | return $obj; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function hasData () |
|
| 41 | + public function hasData() |
|
| 42 | 42 | { |
| 43 | - return $this->hasTpl () && $this->hasFileName (); |
|
| 43 | + return $this->hasTpl() && $this->hasFileName(); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * @return bool |
| 48 | 48 | */ |
| 49 | - public function hasTpl () |
|
| 49 | + public function hasTpl() |
|
| 50 | 50 | { |
| 51 | - return ! empty( $this->tpl ); |
|
| 51 | + return ! empty($this->tpl); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * @return bool |
| 56 | 56 | */ |
| 57 | - public function hasFileName () |
|
| 57 | + public function hasFileName() |
|
| 58 | 58 | { |
| 59 | - return ! empty( $this->fileName ); |
|
| 59 | + return ! empty($this->fileName); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @return string |
| 64 | 64 | */ |
| 65 | - public function getTpl () |
|
| 65 | + public function getTpl() |
|
| 66 | 66 | { |
| 67 | 67 | return $this->tpl; |
| 68 | 68 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * @param string $tpl |
| 72 | 72 | */ |
| 73 | - public function setTpl ( $tpl ) |
|
| 73 | + public function setTpl($tpl) |
|
| 74 | 74 | { |
| 75 | 75 | $this->tpl = $tpl; |
| 76 | 76 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * @return string |
| 80 | 80 | */ |
| 81 | - public function getFileName () |
|
| 81 | + public function getFileName() |
|
| 82 | 82 | { |
| 83 | 83 | return $this->fileName; |
| 84 | 84 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * @param string $fileName |
| 88 | 88 | */ |
| 89 | - public function setFileName ( $fileName ) |
|
| 89 | + public function setFileName($fileName) |
|
| 90 | 90 | { |
| 91 | 91 | $this->fileName = $fileName; |
| 92 | 92 | } |