Location: PHPKode > scripts > Bookmarks class > BookmarkPreferences.php
<?php
/*
 * This file is part of the Booby project.
 * The booby project is located at the following location:
 * http://www.nauta.be/booby/
 *
 * Booby - Copyright (c) 2003 - 2004 Barry Nauta
 *
 * The Booby project is released under the General Public License
 * More detailes in the file 'gpl.html' or on the following
 * website: http://www.gnu.org and look for licenses
 *
 * Enjoy :-)
 */
require_once ('base/model/PreferenceServices.php');
/**
 * The Bookmark preferences.
 *
 * @author Barry Nauta February 2004
 * @package be.nauta.booby.plugins.bookmarks.model
 * @copyright 
 *
 * Copyright (c) 2003 - 2004 Barry Nauta 
 *
 * The Booby project is released under the General Public License
 * More detailes on the following
 * website: <code>http://www.gnu.org</code>
 * and look for licenses
 */
class BookmarkPreferences extends PreferenceServices 
{
	var $VIEW = 'bookmarkTree';
	var $OVERLIB = 'bookmarkOverlib';
	var $YAHOOTREECOLUMNCOUNT = 'bookmarkYahooTreeColumnCount';
	var $NEWWINDOWTARGET = 'bookmarkNewWindowTarget';

	function BookmarkPreferences ()
	{
		parent::PreferenceServices ();
	}
		
	function getAllPreferences ($loginName)
	{
		$result = array ();
		$result [$this->VIEW]
			=$this->getPreferenceValue ($loginName, $this->VIEW);
		$result [$this->OVERLIB]
			=$this->getPreferenceValue ($loginName, $this->OVERLIB);
		$result [$this->YAHOOTREECOLUMNCOUNT]
			=$this->getPreferenceValue ($loginName, $this->YAHOOTREECOLUMNCOUNT);
		$result [$this->NEWWINDOWTARGET]
			=$this->getPreferenceValue ($loginName, $this->NEWWINDOWTARGET);
		$result [$this->SHOWDETAILS]
			=$this->getPreferenceValue ($loginName, $this->SHOWDETAILS);
		return $result;
	}
}
?>
Return current item: Bookmarks class