예제 #1
0
 public function setAttributes($attributes)
 {
     foreach ($attributes as $key => $value) {
         if ($value != '') {
             $key = gettype($key) === 'string' ? FuncHelp::utf8ify($key) : $key;
             $this->{$key} = gettype($value) === 'string' ? FuncHelp::utf8ify($value) : $value;
         }
     }
 }
예제 #2
0
 public function setPokemon($pokemon)
 {
     return FuncHelp::utf8ify($pokemon);
 }