Exemple #1
0
 /**
  * @param Command $command
  * @param string[] $propries
  * */
 public static function analise(Command $command, $propries)
 {
     $cssContent = NULL;
     foreach ($propries as $prop => $value) {
         if ('validate' == $prop) {
             # valor da propriedade
             $propValue = $command->popProperty($prop);
             $validates = explode(',', $propValue);
             foreach ($validates as $validate) {
                 $cssContent .= ' ' . self::$_dictionary[trim($validate)];
             }
         }
     }
     if (NULL !== $cssContent) {
         $propries->class = trim($cssContent);
     }
 }
Exemple #2
0
 /**
  * @return string
  * */
 public function close()
 {
     return PHP_EOL . parent::close();
 }
Exemple #3
0
 /**
  * @return string
  * */
 public function open()
 {
     $text = $this->popProperty('value');
     return parent::open() . $text;
 }