* @var arary $config
* @access protected
*/
- var $config;
+ var $_config = array ();
/**
* Libreria externa.
function MECON_PDF($tam = "a4")
{
$this->_pdf = new pdffile;
- $this->config = include 'MECON/PDF/medidas.php';
- $this->config = $this->config[$tam];
+ $this->_config = include 'MECON/PDF/medidas.php';
+ $this->_config = $this->_config[$tam];
}
/**
* @return void
* @access public
*/
- function addText($X, $Y, $texto, $estilo = '', $pag = null, $transformacion =
- '')
- {
+ function addText($X, $Y, $texto, $estilo = '', $pag = null, $transformacion = '') {
+ //@TODO Ver si $texto es un objeto
+
$x = $X;
$y = $Y;
switch (strtolower($transformacion)) {
{
switch (strtolower($orientacion)) {
case 'landscape':
- $width = $this->config['Yf'] - $this->config['Yi'];
+ $width = $this->_config['Yf'] - $this->_config['Yi'];
break;
default:
- $width = $this->config['Xf'] - $this->config['Xi'];
+ $width = $this->_config['Xf'] - $this->_config['Xi'];
}
return $width;
{
switch (strtolower($orientacion)) {
case 'landscape':
- $height = $this->config['Xf'] - $this->config['Xi'];
+ $height = $this->_config['Xf'] - $this->_config['Xi'];
break;
default:
- $height = $this->config['Yf'] - $this->config['Yi'];
+ $height = $this->_config['Yf'] - $this->_config['Yi'];
}
return $height;
}
*/
function _landscapeX($x, $y)
{
- return -$y + $this->config['Xf'];
+ return -$y + $this->_config['Xf'];
}
/**
*/
function _landscapeY($x, $y)
{
- return $x + $this->config['Yi'];
+ return $x + $this->_config['Yi'];
}
/**
*/
function _portraitX($x, $y)
{
- return $x + $this->config['Xi'];
+ return $x + $this->_config['Xi'];
}
/**
*/
function _portraitY($x, $y)
{
- return $y + $this->config['Yi'];
+ return $y + $this->_config['Yi'];
}
}
?>
\ No newline at end of file