Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /sitemap/include/insert_level.inc.php
sitemap - Richy's Site Map

Includes::insert_level

"insert_level" module.

 

public module insert_level

"insert_level" module.
Makes sure the level field of the insert section on the admin page has an_intelligent value.

Version$Revision: 1.1.1.1 $
Copyright(c)2002 R.J. Vrijhof

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Magic$Id: insert_level.inc.php,v 1.1.1.1 2002/01/19 16:46:58 richy Exp $

 

Public Method Summary

string

insert_level(integer $id, integer $level)

The main function of module "insert_level".

Public Method Details

insert_level

public string insert_level( integer $id, integer $level )

  The main function of module "insert_level".
If the current item clicked is the Home Page item (with ID 1, on level 1,_and there should be only one (1) item that is on level 1!), the level field_will be 2 and not the level of the current item.

Parameter
integer $id
ID of the current item
integer $level
level of the current item
Returns string

value of the level field

Author(s) Richard Vrijhof <R.J.Vrijhof@bigfoot.com>


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta