Procedural File: function.is_parent.php

Source Location: /CORE/addon/smarty/plugins/function.is_parent.php

Page Details

BIGACE - a PHP and MySQL based Web CMS.

Copyright (C) Kevin Papst.

BIGACE 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.

Author:  Kevin Papst
Version:  $Id: function.is_parent.php,v 1.2 2009/02/27 23:13:28 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License
Functions
smarty_function_is_parent  [line 30]

void smarty_function_is_parent( $params, &$smarty  )

Checks if "parent" is a parent (somewhere in the tree above) the "test" item.

Parameter:

  • parent = the Item ID to check for children
  • test = the Item ID we search below "parent"
  • assign = the template variable to assign the result to
  • itemtype = the itemtype to perform this check for (default is MENU)

Parameters:
   $params: 
   &$smarty: 


[ Top ]