Author: jonathan
Date: 2010-01-18 11:39:04 +0100 (Mon, 18 Jan 2010)
New Revision: 26803
Modified:
plugins/sfTCPDFPlugin/branches/1.2/lib/sfTCPDF.class.php
Log:
[sfTCPDFPlugin] replaced is_null function (see HowToContributeToSymfony)
Modified: plugins/sfTCPDFPlugin/branches/1.2/lib/sfTCPDF.class.php
===================================================================
--- plugins/sfTCPDFPlugin/branches/1.2/lib/sfTCPDF.class.php 2010-01-18
04:43:52 UTC (rev 26802)
+++ plugins/sfTCPDFPlugin/branches/1.2/lib/sfTCPDF.class.php 2010-01-18
10:39:04 UTC (rev 26803)
@@ -12,53 +12,53 @@
class sfTCPDF extends TCPDF
{
/**
- * When set this method is called as a header function.
- * The variable must be a valid argument to call_user_func
- *
- * @var mixed
- */
+ * When set this method is called as a header function.
+ * The variable must be a valid argument to call_user_func
+ *
+ * @var mixed
+ */
public $headerCallback = null;
/**
- * When set this method is called as a header function.
- * The variable must be a valid argument to call_user_func
- *
- * @var mixed
- */
+ * When set this method is called as a header function.
+ * The variable must be a valid argument to call_user_func
+ *
+ * @var mixed
+ */
public $footerCallback = null;
- /**
- * Holds the data set via php magic methods
- */
+ /**
+ * Holds the data set via php magic methods
+ */
protected $userData = array();
- /**
- * Instantiate TCPDF lib.
- *
- * @param string $orientation
- * @param string $unit
- * @param string $format
- * @param boolean $unicode
- * @param string $encoding
- */
+ /**
+ * Instantiate TCPDF lib.
+ *
+ * @param string $orientation
+ * @param string $unit
+ * @param string $format
+ * @param boolean $unicode
+ * @param string $encoding
+ */
public function __construct($orientation = 'P', $unit = 'mm', $format =
'A4', $unicode = true, $encoding = "UTF-8")
{
parent::__construct($orientation, $unit, $format, $unicode, $encoding);
}
- /**
- * This method is used to render the page header.
- * It is automatically called by AddPage() and could be overwritten using a
Callback.
- *
- * @access public
- * @see $headerCallback
- */
+ /**
+ * This method is used to render the page header.
+ * It is automatically called by AddPage() and could be overwritten using a
Callback.
+ *
+ * @access public
+ * @see $headerCallback
+ */
/*
public function Header()
{
if ($this->print_header)
{
- if (is_null($this->headerCallback))
+ if (null !== $this->headerCallback)
{
parent::Header();
}
@@ -70,19 +70,19 @@
}
*/
- /**
- * This method is used to render the page footer.
- * It is automatically called by AddPage() and could be overwritten using a
Callback.
- *
- * @access public
- * @see $footerCallback
- */
+ /**
+ * This method is used to render the page footer.
+ * It is automatically called by AddPage() and could be overwritten using a
Callback.
+ *
+ * @access public
+ * @see $footerCallback
+ */
/*
public function Footer()
{
if ($this->print_footer)
{
- if (is_null($this->footerCallback))
+ if (null !== $this->footerCallback)
{
parent::Footer();
}
@@ -92,15 +92,15 @@
}
}
}
- */
+ */
/**
* Magic setter.
- *
+ *
* @param String $name
* @param mixed $value
*/
- /*
+ /*
public function __set($name, $value)
{
$this->userData[$name] = $value;
@@ -112,7 +112,7 @@
* @param String $name Name of data key to return
* @return mixed
*/
- /*
+ /*
public function __get($name)
{
if (array_key_exists($name, $this->userData))
@@ -135,7 +135,7 @@
* @param String $name
* @return Boolean
*/
- /*
+ /*
public function __isset($name)
{
return isset($this->userData[$name]);
@@ -146,7 +146,7 @@
*
* @param String $name
*/
- /*
+ /*
public function __unset($name)
{
unset($this->userData[$name]);
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.