myPortal CMS - the web design community
  • MyPortal 2.0
  • download
  • demo
  • manual
  • editor
  • faq
  • blog
  • forum

free account: Click here
Username: Password:

Manual

structure functions

get_path($cid,$table,$reverse=false)

return array of cids to root

get_first_type($table,$data)

find first type cid

$d = get_path($data['cid'],'articles_categories',true);
$type = get_first_type('articles_types',$d);

get_parents($DB,$cid,$table)

Gets all parent categories (recursive) up to the root.

get_childs($DB,$cid,$table)

Gets all subcategories (recursive) according to parent cid.

get_root($DB,$cid,$table)

Gets pid of root category according to any cid.

Try myPortal 2: