Source for file class.acBlockType_checkbox.php

Documentation is available at class.acBlockType_checkbox.php

  1. <?php
  2. {
  3.     function __construct(&$content_obj, $params = array())
  4.     {
  5.         $params['block_type'] = 'checkbox';
  6.         parent::__construct($content_obj, $params);
  7.         $this->SetProperty('default',intval($this->GetProperty('default')));
  8.     }
  9.     
  10.     public function GetInput()
  11.     {
  12.         return '<input type="hidden" name="'. $this->GetProperty('id') .'" value="0" />
  13.             <input id="'. $this->GetProperty('id') .'" class="pagecheckbox"'. ($this->GetProperty('style') != ''?' style="'. $this->GetProperty('style') .' "':'') . ' type="checkbox" value="1" name="'. $this->GetProperty('id') .'"'. ($this->GetContent() == 1 ? ' checked="checked"':'') .' />';
  14.     }
  15. }
  16. ?>

Documentation generated on Tue, 09 Oct 2012 16:57:02 +0200 by phpDocumentor 1.4.1