Location: PHPKode > projects > chillyCMS > chillyCMS/core/listitem.class.php
<?php
//#################################################################################################
//	Listitem class
//#################################################################################################
//	chillyCMS - Content Management System
//	Copyright (C) 2008
//	Stefanie Wiegand <hide@address.com> & Johannes Cox <hide@address.com>
//	
//	This program is licensed under the GPL 3.0 license. For more information see LICENSE.txt.
//#################################################################################################
defined('DOIT') or die('Restricted access');

class Listitem {
	//Class variables//////////////////////////////////////////////////////////////////////////
	protected $id;
	protected $order;
	protected $prev;
	protected $next;
	protected $data;
	//Functions////////////////////////////////////////////////////////////////////////////////
	//Constructor
	function __construct($id,$order,$prev,$next,$data="") {
		$this->id = $id;
		$this->order = $order;
		$this->prev = $prev;
		$this->next = $next;
		$this->data = $data;
	}
	//Destructor
	function __destruct() { $this->id=$this->order=$this->prev=$this->next=$this->data=false; }
	//Getter
	public function __get($name) {
		if (isset($name, $this->$name)) { return $this->$name; }
		else { return false; }	
	}
	//Setter
	public function __set($name,$value) {
		if (isset($name, $this->$name)) { $this->$name=$value; }
		else { return false; }	
	}
} ?>
Return current item: chillyCMS