Ignore:
Timestamp:
May 3, 2014 11:09:03 PM (10 years ago)
Author:
anonymous
Message:

Convert tabs to spaces, and lineendings to LF in all files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Hierarchy.inc.php

    r468 r479  
    115115    public function toStringID($child_type=null, $child_id=null)
    116116    {
    117             $app =& App::getInstance();
     117            $app =& App::getInstance();
    118118
    119119            if (!isset($child_type) || !isset($child_id)) {
     
    149149    public function toArrayID(&$node)
    150150    {
    151             $app =& App::getInstance();
     151            $app =& App::getInstance();
    152152
    153153            if (preg_match('/^([[:alnum:]]+)__-?([[:digit:]]+)$/', $node, $node_parts)) {
     
    169169    public function insertNode($parents, $child_type=null, $child_id=null, $relationship_type=null, $title='')
    170170    {
    171         $app =& App::getInstance();
    172         $db =& DB::getInstance();
     171        $app =& App::getInstance();
     172        $db =& DB::getInstance();
    173173
    174174        if (!isset($child_type) || !isset($child_id)) {
     
    248248    public function deleteNode($child_type=null, $child_id=null)
    249249    {
    250         $app =& App::getInstance();
    251         $db =& DB::getInstance();
     250        $app =& App::getInstance();
     251        $db =& DB::getInstance();
    252252
    253253        if (!isset($child_type) || !isset($child_id)) {
     
    298298    public function moveNode($new_parents=null, $child_type=null, $child_id=null, $relationship_type=null, $title='')
    299299    {
    300             $app =& App::getInstance();
    301             $db =& DB::getInstance();
    302 
    303             if (!isset($child_type) || !isset($child_id)) {
     300            $app =& App::getInstance();
     301            $db =& DB::getInstance();
     302
     303            if (!isset($child_type) || !isset($child_id)) {
    304304            if ($this->node_init) {
    305305                $child_type =& $this->child_type;
     
    375375    public function getParents($child_type=null, $child_id=null, $type_constraint=null, $order='')
    376376    {
    377         $app =& App::getInstance();
    378         $db =& DB::getInstance();
     377        $app =& App::getInstance();
     378        $db =& DB::getInstance();
    379379
    380380        if (!isset($child_type) || !isset($child_id)) {
     
    426426    public function getNode($child_type=null, $child_id=null)
    427427    {
    428         $app =& App::getInstance();
    429         $db =& DB::getInstance();
     428        $app =& App::getInstance();
     429        $db =& DB::getInstance();
    430430
    431431        if (!isset($child_type) || !isset($child_id)) {
     
    470470    public function getChildren($child_type=null, $child_id=null, $type_constraint=null, $order='')
    471471    {
    472         $app =& App::getInstance();
    473         $db =& DB::getInstance();
     472        $app =& App::getInstance();
     473        $db =& DB::getInstance();
    474474
    475475        if (!isset($child_type) || !isset($child_id)) {
     
    522522    public function getNumberChildren($child_type=null, $child_id=null, $type_constraint=null)
    523523    {
    524         $app =& App::getInstance();
    525         $db =& DB::getInstance();
     524        $app =& App::getInstance();
     525        $db =& DB::getInstance();
    526526
    527527        if (!isset($child_type) || !isset($child_id)) {
     
    563563    public function isLeaf($child_type=null, $child_id=null)
    564564    {
    565         $app =& App::getInstance();
     565        $app =& App::getInstance();
    566566
    567567        if (!isset($child_type) || !isset($child_id)) {
     
    624624    public function getAllAncestors($child_type, $child_id, $go_linear=false, $_return_flag=true)
    625625    {
    626         $db =& DB::getInstance();
     626        $db =& DB::getInstance();
    627627
    628628        static $output = array();
     
    678678    public function nodeExists($child_type=null, $child_id=null, $parent_type=null, $parent_id=null, $relationship_type=null)
    679679    {
    680         $app =& App::getInstance();
    681         $db =& DB::getInstance();
     680        $app =& App::getInstance();
     681        $db =& DB::getInstance();
    682682
    683683        if (!isset($child_type) || !isset($child_id)) {
     
    730730    public function &getNodeList($preselected=null, $child_type=null, $child_id=null, $type_constraint=null, $include_curr=false, $order='', $_indent=0, $_return_flag=true)
    731731    {
    732         $app =& App::getInstance();
     732        $app =& App::getInstance();
    733733
    734734        static $output = array();
     
    803803    public function rebuildSubnodeQty($type_constraint=null)
    804804    {
    805         $db =& DB::getInstance();
     805        $db =& DB::getInstance();
    806806
    807807        // Reset all the category counters to zero.
     
    827827    public function setSubnodeQtyToParents($child_type, $child_id, $num_children)
    828828    {
    829         $db =& DB::getInstance();
     829        $db =& DB::getInstance();
    830830
    831831        $db->query("
Note: See TracChangeset for help on using the changeset viewer.