/**
* Constructor
*
- * @param $format Either the name of a Label Format in the Option Value table
+ * @param $format
+ * Either the name of a Label Format in the Option Value table.
* or an array of Label Format values.
* @param string|\Unit $unit Unit of measure for the PDF document
*
- * @access public
*/
- function __construct($format, $unit = 'mm') {
+ public function __construct($format, $unit = 'mm') {
if (is_array($format)) {
// Custom format
$tFormat = $format;
* @param $objectinstance
* @param string $methodname
*/
- function SetGenerator($objectinstance, $methodname = 'generateLabel') {
+ public function SetGenerator($objectinstance, $methodname = 'generateLabel') {
$this->generatorMethod = $methodname;
$this->generatorObject = $objectinstance;
}
*
* @return float|int|mixed
*/
- function getFormatValue($name, $convert = FALSE) {
+ public function getFormatValue($name, $convert = FALSE) {
if (isset($this->format[$name])) {
$value = $this->format[$name];
$metric = $this->format['metric'];
* @param $format
* @param $unit
*/
- function LabelSetFormat(&$format, $unit) {
+ public function LabelSetFormat(&$format, $unit) {
$this->defaults = CRM_Core_BAO_LabelFormat::getDefaultValues();
$this->format = &$format;
$this->formatName = $this->getFormatValue('name');
/**
* @param $text
*/
- function generateLabel($text) {
+ public function generateLabel($text) {
$args = array(
'w' => $this->width,
'h' => 0,
/**
* @param $texte
*/
- function AddPdfLabel($texte) {
+ public function AddPdfLabel($texte) {
if ($this->countX == $this->xNumber) {
// Page full, we start a new one
$this->AddPage();
}
}
- function getFontNames() {
+ public function getFontNames() {
// Define labels for TCPDF core fonts
$fontLabel = array(
'courier' => ts('Courier'),
'dejavusans' => ts('Deja Vu Sans (UTF-8)'),
);
-
// Check to see if we have any additional fonts to add. You can specify more fonts in
// civicrm.settings.php via: $config['CiviCRM Preferences']['additional_fonts']
// CRM-13307
return $list;
}
}
-