Location: PHPKode > scripts > Photos > photos/objects/class.page.inc.php
<?php

// This file is part of Photos
// Copyright (c) 2001-2004 Alex King
// see LICENSE.txt for more information

class page {
	var $body;
	var $flags;
	var $init_string;
	var $msgs;
	var $resize_string;
	var $return_link;
	var $target;
	var $title;
	var $unload_string;
	
	function page() {
		$this->body = "search.php";
		$this->flags = array();
		$this->init_string = "";
		$this->msgs = array();
		$this->resize_string = "";
		$this->return_link = "";
		$this->target = "home";
		$this->title = "photos";
		$this->unload_string = "";
	}
	function add_flag($flag) {
		if (!in_array($flag, $this->flags)) {
			$this->flags[] = $flag;
		}
	}
	function remove_flag($flag) {
		$temp_flags = array();
		foreach ($this->flags as $temp_flag) {
			if ($temp_flag != $flag) {
				$temp_flags[] = $flag;
			}
		}
		$this->flags = $temp_flags;
	}
	function check_flag($flag) {
		if (in_array($flag, $this->flags)) {
			return 1;
		}
		else {
			return 0;
		}
	}
}

?>
Return current item: Photos