Exemplo n.º 1
0
 public function load(\Transphporm\FeatureSet $featureSet)
 {
     $data = $featureSet->getData();
     $featureSet->registerPseudo(new \Transphporm\Pseudo\Attribute($data));
     $featureSet->registerPseudo(new \Transphporm\Pseudo\Nth());
     $featureSet->registerPseudo(new \Transphporm\Pseudo\Not($data));
 }
Exemplo n.º 2
0
 public function load(\Transphporm\FeatureSet $featureSet)
 {
     $locale = $this->getLocale();
     $featureSet->registerFormatter(new \Transphporm\Formatter\Number($locale));
     $featureSet->registerFormatter(new \Transphporm\Formatter\Date($locale));
     $featureSet->registerFormatter(new \Transphporm\Formatter\StringFormatter());
 }
Exemplo n.º 3
0
 public function load(\Transphporm\FeatureSet $featureSet)
 {
     $data = $featureSet->getData();
     $headers =& $featureSet->getHeaders();
     $featureSet->registerProperty('content', new \Transphporm\Property\Content($data, $headers, $featureSet->getFormatter()));
     $featureSet->registerProperty('repeat', new \Transphporm\Property\Repeat($data));
     $featureSet->registerProperty('display', new \Transphporm\Property\Display());
     $featureSet->registerProperty('bind', new \Transphporm\Property\Bind($data));
 }
Exemplo n.º 4
0
 public function load(\Transphporm\FeatureSet $featureSet)
 {
     $featureSet->registerFormatter(new ReverseFormatter());
 }