Location: PHPKode > projects > Absolut Engine > absolut/documentation/directory-coreclass.php.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="licence" content="GNU General Public Licence" />
<meta name="robots" content="all" />
<title>Documentation: class CDirectory extends CEngine
</title>
<style type="text/css">@import "styles.css";</style>
</head>

<body><h1>class CDirectory extends CEngine
</h1><a href="index.html">^ INDEX</a><br /><a name="TOC-MAIN"></a><h1>Table of contents</h1><a href="#CDirectory">CDirectory</a><br /><a href="#GetArchive">GetArchive</a><br /><a href="#GetDirectoryCategory">GetDirectoryCategory</a><br /><a href="#GetDirectoryCategoryDepth">GetDirectoryCategoryDepth</a><br /><a href="#GetDirectoryCategoryFilename">GetDirectoryCategoryFilename</a><br /><a href="#GetDirectoryCategoryID">GetDirectoryCategoryID</a><br /><a href="#GetDirectoryCategoryName">GetDirectoryCategoryName</a><br /><a href="#GetDirectoryCategoryPriority">GetDirectoryCategoryPriority</a><br /><a href="#GetDirectoryCategorylinkID">GetDirectoryCategorylinkID</a><br /><a href="#GetDirectoryLinkCategories">GetDirectoryLinkCategories</a><br /><a href="#GetDirectoryLinkDescription">GetDirectoryLinkDescription</a><br /><a href="#GetDirectoryLinkEmail">GetDirectoryLinkEmail</a><br /><a href="#GetDirectoryLinkFilename">GetDirectoryLinkFilename</a><br /><a href="#GetDirectoryLinkID">GetDirectoryLinkID</a><br /><a href="#GetDirectoryLinkPriority">GetDirectoryLinkPriority</a><br /><a href="#GetDirectoryLinkStatus">GetDirectoryLinkStatus</a><br /><a href="#GetDirectoryLinkThumbnail">GetDirectoryLinkThumbnail</a><br /><a href="#GetDirectoryLinkTitle">GetDirectoryLinkTitle</a><br /><a href="#GetDirectoryLinkURL">GetDirectoryLinkURL</a><br /><a href="#GetDirectoryParentCategory">GetDirectoryParentCategory</a><br /><a href="#GetDirectoryParentCategoryID">GetDirectoryParentCategoryID</a><br /><a href="#GetDirectoryTopCategory">GetDirectoryTopCategory</a><br /><a href="#LoopThroughDirectoryCategoryList">LoopThroughDirectoryCategoryList</a><br /><p class="text"></p><p><a href="#TOC-MAIN">^ Top</a></p><a name="CDirectory"></a><h2>   CDirectory()
</h2><h3>absolutengine
</h3><p class="text">Directory class for handling all directory-related functions</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetArchive"></a><h2>   GetArchive($settings)
</h2><p class="text">Retrieve links from database<br />
"linknumber"=>int number of links to list<br />
"offset"=>int offset to show links from<br />
"categoryID"=>string links in category ID (comma delimited list for multiple values)<br />
"priority"=>boolean 0,1<br />
"status"=>boolean 0,1<br />
"linkID"=>int ID of link to be displayed<br />
"order"=>string use MySQL format ("priority DESC" etc.)<br />
EXCLUSION: !X = !4 - will exclude category with ID 4 if used in categoryID<br />
<br />
This will list latest 10 links with priority 1<br />
<code><br />
<?<br />
$settings=array(<br />
"linknumber"=>10,<br />
"priority"=>1<br />
);<br />
$aepublic->GetArchive($settings);<br />
.<br />
.<br />
.<br />
?><br />
</code><br />
This will list 10 links starting from 5th result in category 5 and 14<br />
<code><br />
<?<br />
$settings=array(<br />
"linknumber"=>10,<br />
"offset"=>5,<br />
"categoryID"=>"5,14"<br />
);<br />
$aepublic->GetArchive($settings);<br />
.<br />
.<br />
.<br />
?><br />
</code></p><p class="param">array $settings array of parameters, see below:</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryCategory"></a><h2>   GetDirectoryCategory($categoryID)
</h2><p class="text">Retrieves category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryCategoryDepth"></a><h2>   GetDirectoryCategoryDepth($categoryID)
</h2><p class="text">Get depth level of the category</p><p class="param">int $categoryID ID of category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryCategoryFilename"></a><h2>   GetDirectoryCategoryFilename()
</h2><p class="text">Return filename of category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryCategoryID"></a><h2>   GetDirectoryCategoryID()
</h2><p class="text">Return category ID</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryCategoryName"></a><h2>   GetDirectoryCategoryName()
</h2><p class="text">Get category name</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryCategoryPriority"></a><h2>   GetDirectoryCategoryPriority()
</h2><p class="text">Return priority of category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryCategorylinkID"></a><h2>   GetDirectoryCategorylinkID()
</h2><p class="text">Return linkID describing category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkCategories"></a><h2>   GetDirectoryLinkCategories($linkID=0)
</h2><p class="text">Retrieve categories for the link</p><p class="param">int $linkID ID of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkDescription"></a><h2>   GetDirectoryLinkDescription()
</h2><p class="text">Get description of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkEmail"></a><h2>   GetDirectoryLinkEmail()
</h2><p class="text">Get email of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkFilename"></a><h2>   GetDirectoryLinkFilename()
</h2><p class="text">Get filename of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkID"></a><h2>   GetDirectoryLinkID()
</h2><p class="text">Get ID of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkPriority"></a><h2>   GetDirectoryLinkPriority()
</h2><p class="text">Get priority of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkStatus"></a><h2>   GetDirectoryLinkStatus()
</h2><p class="text">Get status of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkThumbnail"></a><h2>   GetDirectoryLinkThumbnail()
</h2><p class="text">Get thumbnail image for the website (link) from thumbshots.org</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkTitle"></a><h2>   GetDirectoryLinkTitle()
</h2><p class="text">Get title of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryLinkURL"></a><h2>   GetDirectoryLinkURL()
</h2><p class="text">Get URL of link</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryParentCategory"></a><h2>   GetDirectoryParentCategory($categoryID=0)
</h2><p class="text">Retrieve parent category for the category</p><p class="param">int $categoryID ID of category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryParentCategoryID"></a><h2>   GetDirectoryParentCategoryID()
</h2><p class="text">Return parent categoryID of category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDirectoryTopCategory"></a><h2>   GetDirectoryTopCategory($categoryID=0)
</h2><p class="text">Get top category for the category</p><p class="param">int $categoryID ID of category</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="LoopThroughDirectoryCategoryList"></a><h2>   LoopThroughDirectoryCategoryList($settings)
</h2><p class="text">Loop through the categories and generate a category list</p><p class="param">array $settings settings to specify how the category list should be displayed, see below:<br />
int $settings["parentcategoryID"] - ID of parent category to start from<br />
int $settings["type"] type of category list to be displayed - 0 public list, 1 links using UL, 2 dropdown menu using &nbsp, 3 checkboxes below each other;<br />
boolean $settings["order"] - MySQL ORDER BY query part e.g. "priority DESC", "category"<br />
boolean $settings["override"] - override current category filtering - 0 do nothing, 1 override and show as selected in dropdown<br />
int $settings["depth"] - how deep the list should go from the parent category</p><p><a href="#TOC-MAIN">^ Top</a></p></body>
</html>
Return current item: Absolut Engine