PHP Classes

File: Scheduler-Documentation.pod

Recommend this page to a friend!
  Classes of Lucas Tiago de Moraes   PHP DHX   Scheduler-Documentation.pod   Download  
File: Scheduler-Documentation.pod
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP DHX
Generate XML for defining interfaces with DHTMLX
Author: By
Last change: Update of Scheduler-Documentation.pod
Date: 9 months ago
Size: 3,358 bytes
 

Contents

Class file image Download
=encoding utf8 =head1 Class Scheduler Documentation =head2 Description Class Scheduler - XML Generator for DHTMLX =head3 construct B<$scheduler = new Scheduler( set encoding, default utf-8 )> $scheduler = new Scheduler; or $scheduler = new Scheduler('iso-8859-1'); =head3 event B<$scheduler-E<gt>event( array( 'key attribute' =E<gt> 'value attribute' ) )> $scheduler->event( array( "id" => 1, "start_date" => "2009-05-24 00:00:00", "end_date" => "2009-06-08 00:00:00", "text" => "French Open", "details" => "Philippe-Chatrier Court Paris, FRA" ) ); =head3 header B<$scheduler-E<gt>header()> $scheduler->header(); return header("Content-type: application/xml; charset=utf-8"); =head3 result B<$scheduler-E<gt>result()> echo $scheduler->result(); Print XML =head2 Examples =head3 Example 1 <?php include_once 'DHX.php'; $scheduler = new Scheduler; $scheduler->event( array( "id" => 1, "start_date" => "2009-05-24 00:00:00", "end_date" => "2009-06-08 00:00:00", "text" => "French Open", "details" => "Philippe-Chatrier Court Paris, FRA" ), array( "id" => 2, "start_date" => "2009-06-10 00:00:00", "end_date" => "2009-06-13 00:00:00", "text" => "Aegon Championship", "details" => "The Queens Club London, ENG" ), array( "id" => 3, "start_date" => "2009-06-20 00:00:00", "end_date" => "2009-07-18 00:00:00", "text" => "Wimbledon", "details" => "Wimbledon June 21, 2009 - July 5, 2009" ) ); $scheduler->header(); echo $scheduler->result(); ?> B<Result> <?xml version="1.0" encoding="utf-8"?> <data> <event id="1"> <start_date> <![CDATA[ 2009-05-24 00:00:00 ]]> </start_date> <end_date> <![CDATA[ 2009-06-08 00:00:00 ]]> </end_date> <text> <![CDATA[ French Open ]]> </text> <details> <![CDATA[ Philippe-Chatrier Court Paris, FRA ]]> </details> </event> <event id="2"> <start_date> <![CDATA[ 2009-06-10 00:00:00 ]]> </start_date> <end_date> <![CDATA[ 2009-06-13 00:00:00 ]]> </end_date> <text> <![CDATA[ Aegon Championship ]]> </text> <details> <![CDATA[ The Queens Club London, ENG ]]> </details> </event> <event id="3"> <start_date> <![CDATA[ 2009-06-20 00:00:00 ]]> </start_date> <end_date> <![CDATA[ 2009-07-18 00:00:00 ]]> </end_date> <text> <![CDATA[ Wimbledon ]]> </text> <details> <![CDATA[ Wimbledon June 21, 2009 - July 5, 2009 ]]> </details> </event> </data> =head2 Author B<Lucas Tiago de Moraes> =head2 Support L<Group DHTMLX Facebook|https://www.facebook.com/groups/195216390589070/>