Location: PHPKode > scripts > Yahoo Calendar > yahoo-calendar/class.ycal.php
<?php

	/**
	 * Yahoo Calendar Link Generator v0.1
	 *
	 * This is a link generating class that enables you to generate links that when clicked on
	 * would insert that event into the Yahoo Calendar of the individual who clicked on it.
	 *
	 * Written by: Tim Akinbo <hide@address.com>
	 * Date: March 05, 2003
	 */
	 
	class ycal {
		
		var $date;
		var $title;
		var $link;
		
		function ycal($date = 0, $title = "") {
			$this->date = $date;
			$this->title = $title;
		}
		
		function setDate($date) {
			$this->date = $date;
		}
		
		function setTitle($title) {
			$this->title = $title;
		}
		
		function getDate() {
			return $this->date;
		}
		
		function getTitle() {
			return $this->title;
		}
		
		function genLink() {
			$link = "http://calendar.yahoo.com/?v=60&ST=". $this->date . "&REM1=01d&TITLE=" . urlencode($this->title) . "&VIEW=d";
			return $link;
		}
	}

?>
Return current item: Yahoo Calendar