Author: Kore Nordmann
Date: 2006-09-24 12:21:52 +0200 (Sun, 24 Sep 2006)
New Revision: 3555
Log:
- Check intial font path
# Do not know how to test this automatically. Manual tests proves this working.
Modified:
trunk/Graph/src/options/font.php
Modified: trunk/Graph/src/options/font.php
===================================================================
--- trunk/Graph/src/options/font.php 2006-09-24 10:11:12 UTC (rev 3554)
+++ trunk/Graph/src/options/font.php 2006-09-24 10:21:52 UTC (rev 3555)
@@ -46,6 +46,8 @@
*/
class ezcGraphFontOptions extends ezcBaseOptions
{
+ protected $pathChecked = false;
+
/**
* Constructor
*
@@ -146,6 +148,7 @@
default:
throw new ezcGraphUnknownFontTypeException(
$propertyValue, $parts['extension'] );
}
+ $this->pathChecked = true;
}
else
{
@@ -166,6 +169,31 @@
break;
}
}
+
+ /**
+ * __get
+ *
+ * @param mixed $propertyName
+ * @throws ezcBasePropertyNotFoundException
+ * If a the value for the property options is not an instance of
+ * @return mixed
+ * @ignore
+ */
+ public function __get( $propertyName )
+ {
+ switch ( $propertyName )
+ {
+ case 'path':
+ if ( $this->pathChecked === false )
+ {
+ // Enforce call of path check
+ $this->__set( 'path', $this->properties['path'] );
+ }
+ // No break to use parent return
+ default:
+ return parent::__get( $propertyName );
+ }
+ }
}
?>
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components