コード例 #1
0
ファイル: Timg.php プロジェクト: ssrsfs/blg
 public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
     $this->name = 'img';
     $ratio = $this->hasAttribute('ratio');
     $this->attachPreprocess(new Typeframe_TagPreprocessor_Thumb($ratio));
 }
コード例 #2
0
ファイル: Checkbox.php プロジェクト: ssrsfs/blg
 public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
     $this->name = 'input';
     $this->attributes['type'] = 'checkbox';
     $this->attachPreprocess(new Pagemill_TagPreprocessor_CheckValue($this->attributes['checked']));
 }
コード例 #3
0
ファイル: AttributeTag.php プロジェクト: ssrsfs/blg
 public function __construct($name, array $attributes = array(), Pagemill_Tag $parent = null, Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
     if (is_null($this->parent())) {
         throw new Exception('Attribute element requires a parent');
     }
     $this->parent()->attachPreprocess(new Pagemill_TagPreprocessor_AttributeTag($this));
 }
コード例 #4
0
ファイル: Postlink.php プロジェクト: ssrsfs/blg
 public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
     $this->name = 'a';
     $this->setAttribute('data-confirm', $this->getAttribute('confirm'));
     $this->removeAttribute('confirm');
     $this->attachPreprocess(new Typeframe_TagPreprocessor_Method('post'));
     //Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.js', 'text/javascript', $this);
     Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.linkmethod.js', 'text/javascript', $this);
 }
コード例 #5
0
ファイル: Body.php プロジェクト: ssrsfs/blg
 public function __construct($name, array $attributes = array(), Pagemill_Tag $parent = null, Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
     $this->parent()->attachPreprocess(new Typeframe_TagPreprocessor_Export('body', $this));
 }
コード例 #6
0
ファイル: Html.php プロジェクト: ssrsfs/blg
 public function __construct($name, array $attributes = array(), Pagemill_Tag $parent = null, Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
 }
コード例 #7
0
ファイル: Body.php プロジェクト: ssrsfs/blg
 public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
     $this->attachPreprocess(new Typeframe_TagPreprocessor_DebugInBody());
     $this->attachPreprocess(new Typeframe_TagPreprocessor_BodyAttributes());
 }