Changeset 2937
- Timestamp:
- 07/23/08 16:08:03 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/project/modules/devel/cms3/heading/classes/headingservices.class.php
r2936 r2937 53 53 $path = array (); 54 54 $public_id = $pPublicId; 55 for (;;) { 56 $parameters = _daoSp ()->addCondition ('public_id_hei', '=', $public_id) 55 do {$parameters = _daoSp ()->addCondition ('public_id_hei', '=', $public_id) 57 56 ->setLimit (0, 1); 58 57 $results = _dao('heading')->findBy ($parameters); … … 64 63 break; 65 64 } 66 } 65 } while ($results[0]->parent_id_head); 67 66 return $path; 68 67 } … … 80 79 $path = array (); 81 80 $id_head = $pId; 82 for (;;){81 do { 83 82 $results = _dao('heading')->get ($id_head); 84 83 if ($results->parent_id_head !== null) { … … 88 87 break; 89 88 } 90 } 89 } while ($results->parent_id_head); 91 90 return $path; 92 91 }
