properties() public method

Returns the entire set of properties.
public properties ( ) : array
return array Properties.
コード例 #1
0
ファイル: Templater.php プロジェクト: birah/essence
 /**
  *	{@inheritDoc}
  */
 public function present(Media $Media)
 {
     $switch = $Media->get($this->_switch);
     if ($switch && !$Media->has($this->_property)) {
         foreach ($this->_templates as $pattern => $template) {
             if (preg_match($pattern, $switch)) {
                 $Media->set($this->_property, Template::compile($template, $Media->properties(), 'htmlspecialchars'));
                 break;
             }
         }
     }
     return $Media;
 }
コード例 #2
0
 /**
  *	{@inheritDoc}
  */
 public function present(Media $Media)
 {
     return $Media->setProperties(Transform::reindex($Media->properties(), $this->_mapping));
 }