示例#1
0
 /**
  * PHP5 type constructor
  */
 function __construct($name, $label = '', $textBefore = '', $textAfter = '')
 {
     parent::__construct($name, '', $label, $textBefore, $textAfter);
     //set the default (English) values for strings that can be localized
     $this->_L10nStrings = array("selectedListLabel" => "selected", "deselectedListLabel" => "deselected");
 }
 function __construct($exifKey, $exifExampleValue)
 {
     parent::__construct($exifKey);
     $this->_exifExampleValue = $exifExampleValue;
     $this->addChild(new TextFieldOption($exifKey . '-displayName', '', __('Display Name', 'PhotoQ') . ': ', '', '<br/>', '20'));
     //whether to use it for tagFromExif
     $this->addChild(new CheckBoxOption($exifKey . '-tag', '0', __('Create post tags from EXIF data', 'PhotoQ') . '', '', ''));
 }
 /**
  * PHP5 type constructor
  */
 function __construct($name, $defaultValue, $label = '', $textBefore = '', $textAfter = '')
 {
     parent::__construct($name, $defaultValue, $label, $textBefore, $textAfter);
     $this->deselect();
 }