source: branches/rsr.v5.1.dev/web/app/data/modules/contenus/dc_links.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 12 years ago

import initial

File size: 1.2 KB
Line 
1<?php
2
3  class dc_links extends data
4  {
5
6    # ----------------------------------------------------------------------------------------
7    #                                                                               categories
8    #
9
10    function links_categories($path)
11    { return $this->categories($path);
12    }
13
14    function all_links($path = array())
15    { $_path = array("root", "links");
16      foreach($path as $__path) $_path[] = $__path;
17      if(($id = $this->id_categorie($_path)) !== false)
18      { return $this->sub_categories($id, null);
19      }
20      return false;
21    }
22
23    function links_categorie($id)
24    { return $this->categorie($id);
25    }
26
27    function add_links_categorie($nom, $titre, $description, $url = null, $parent = null)
28    { return $this->add_categorie
29      ( $nom,
30        $titre,
31        null,
32        $description,
33        $url,
34        isset($parent) ? $parent : $this->id_categorie(array("root", "menus"))
35      );
36    }
37
38    function set_links_categorie($id, $nom, $titre, $description, $url, $ordre = null)
39    { return $this->set_categorie($id, $nom, $titre, null, $description, $url, $ordre);
40    }
41
42    function del_links_categorie($id)
43    { return $this->del_categorie($id, true);
44    }
45
46  }
47
48?>
Note: See TracBrowser for help on using the repository browser.