[bennu-cvs] bennu/lib bennu.inc.php,1.1.1.1,1.2 iCalendar_properties.php,1.10,1.11
Status: Alpha
Brought to you by:
defacer
From: Jon P. <de...@us...> - 2005-07-21 22:29:43
|
Update of /cvsroot/bennu/bennu/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29996/lib Modified Files: bennu.inc.php iCalendar_properties.php Log Message: Bennu version integration in the serialized output, couple of trivial TODOs taken out of the way. Index: iCalendar_properties.php =================================================================== RCS file: /cvsroot/bennu/bennu/lib/iCalendar_properties.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** iCalendar_properties.php 7 Jul 2005 01:18:15 -0000 1.10 --- iCalendar_properties.php 21 Jul 2005 22:29:27 -0000 1.11 *************** *** 147,151 **** if($name == 'VALUE') { // TODO: what if this invalidates an already-set value? - // TODO: what if $value is lowercase? $this->val_type = constant('RFC2445_TYPE_'.str_replace('-', '_', $value)); } --- 147,150 ---- *************** *** 245,252 **** var $name = 'PRODID'; var $val_type = RFC2445_TYPE_TEXT; ! // TODO: Have this be more in-line with the library's version ! var $val_default = '-//John Papaioannou/NONSGML Bennu 0.1//EN'; function construct() { $this->valid_parameters = array( RFC2445_XNAME => RFC2445_OPTIONAL --- 244,252 ---- var $name = 'PRODID'; var $val_type = RFC2445_TYPE_TEXT; ! var $val_default = NULL; function construct() { + $this->val_default = '-//John Papaioannou/NONSGML Bennu '._BENNU_VERSION.'//EN'; + $this->valid_parameters = array( RFC2445_XNAME => RFC2445_OPTIONAL *************** *** 268,272 **** function is_valid_value($value) { - // TODO: should do something to support other versions return($value === '2.0' || $value === 2.0); } --- 268,271 ---- Index: bennu.inc.php =================================================================== RCS file: /cvsroot/bennu/bennu/lib/bennu.inc.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** bennu.inc.php 30 Jun 2005 23:20:25 -0000 1.1.1.1 --- bennu.inc.php 21 Jul 2005 22:29:27 -0000 1.2 *************** *** 1,10 **** <?php ! if(!defined('_BENNU_INCLUDED')) { include('iCalendar_rfc2445.php'); include('iCalendar_components.php'); include('iCalendar_properties.php'); include('iCalendar_parameters.php'); - define('_BENNU_INCLUDED', 1); } --- 1,10 ---- <?php ! if(!defined('_BENNU_VERSION')) { ! define('_BENNU_VERSION', '0.1'); include('iCalendar_rfc2445.php'); include('iCalendar_components.php'); include('iCalendar_properties.php'); include('iCalendar_parameters.php'); } |