PHP Classes

Yahoo Calendar: Generates URLs that add events to Yahoo Calendar

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 1,180 All time: 3,190 This week: 163Up
Version License Categories
ycal 1.0GNU Lesser Genera...Time and Date
Description Author

Yahoo Calendar is a PHP class that generates URLs that can be used to add events to Yahoo Calendar. This is useful for individuals who send schedules by email to others.

In your email, you can hyperlink an image that says something similar to "Add Event to Yahoo Calendar". When this image is clicked on (provided the individual has a Yahoo account) the event would be added to his/her calendar.

Picture of Tim Akinbo
Name: Tim Akinbo <contact>
Classes: 2 packages by
Country: Nigeria Nigeria
Age: 40
All time rank: 2211 in Nigeria Nigeria
Week rank: 468 Down12 in Nigeria Nigeria Down

	YCal - Yahoo Calendar Class

	include ('class.ycal.php');

	// Constructors
	$ycal = new ycal("20030305");
	$ycal = new ycal("20030305", "Dinner at Mr. Biggs with Dipo");

	The Yahoo Calendar class, is a link generating class for Yahoo Calendar
	events. It is useful for individuals who distribute schedule information
	either on the web or by email.

	You could for example, hyperlink an image with a description similar to:
	"Add Event to Yahoo Calendar". When this link is clicked on (provided 
	the user has a Yahoo account) the event can then be added to his/her 
	Yahoo Calendar.

	This example shows how the class can be used to send an email with 
	schedule information on a particular event.



	$ycal = new ycal();
	$ycal->setTitle("Staff meeting at Airport Hotel, Ikeja.");
	$link = $ycal->genLink();

	$message = "Dear Deji,\n\n";
	$message .= "Please be reminded of our staff meeting that is scheduled\n";
	$message .= "to hold on the 5th of March, 2003 ";
	$message .= "<a href='$link' alt='Add to Yahoo Calendar'>Add to Yahoo Calendar</a>";
	$message .= " at Airport Hotel, Ikeja.\n\n";
	$message .= "Thanks.\nManagement";

	$to = "";
	$headers = "Content-Type: text/html";

	mail($to, "Staff meeting on 5th March, 2003", $message, $headers);


	new ycal([DATE, [TITLE]]);
		This constructor is used to set the date and title of the event

		Both DATE and TITLE are of types "string"

		Sets the date for the event. DATE is of type string and is of
		the format YYYYMMDD

		Sets the title for the event. TITLE is of type string.

		Returns the date for the event. Return type is string.

		Returns the title for the event. Return type is string.

		Returns the generated url for the event. Return type is string

	Tim Akinbo <>
  Files folder image Files  
File Role Description
Plain text file class.ycal.php Class The Yahoo Calendar Class
Accessible without login Plain text file example.php Example An example using the Yahoo Calendar class
Accessible without login Plain text file README Doc. Yahoo Class Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,190
This week:163Up
User Comments (1)
12 years ago (kishore kumar)
For more information send a message to info at phpclasses dot org.