class CDirectory extends CEngine

^ INDEX

Table of contents

CDirectory
GetArchive
GetDirectoryCategory
GetDirectoryCategoryDepth
GetDirectoryCategoryFilename
GetDirectoryCategoryID
GetDirectoryCategoryName
GetDirectoryCategoryPriority
GetDirectoryCategorylinkID
GetDirectoryLinkCategories
GetDirectoryLinkDescription
GetDirectoryLinkEmail
GetDirectoryLinkFilename
GetDirectoryLinkID
GetDirectoryLinkPriority
GetDirectoryLinkStatus
GetDirectoryLinkThumbnail
GetDirectoryLinkTitle
GetDirectoryLinkURL
GetDirectoryParentCategory
GetDirectoryParentCategoryID
GetDirectoryTopCategory
LoopThroughDirectoryCategoryList

^ Top

CDirectory()

absolutengine

Directory class for handling all directory-related functions

^ Top

GetArchive($settings)

Retrieve links from database
"linknumber"=>int number of links to list
"offset"=>int offset to show links from
"categoryID"=>string links in category ID (comma delimited list for multiple values)
"priority"=>boolean 0,1
"status"=>boolean 0,1
"linkID"=>int ID of link to be displayed
"order"=>string use MySQL format ("priority DESC" etc.)
EXCLUSION: !X = !4 - will exclude category with ID 4 if used in categoryID

This will list latest 10 links with priority 1

$settings=array(
"linknumber"=>10,
"priority"=>1
);
$aepublic->GetArchive($settings);
.
.
.
?>

This will list 10 links starting from 5th result in category 5 and 14

$settings=array(
"linknumber"=>10,
"offset"=>5,
"categoryID"=>"5,14"
);
$aepublic->GetArchive($settings);
.
.
.
?>

array $settings array of parameters, see below:

^ Top

GetDirectoryCategory($categoryID)

Retrieves category

^ Top

GetDirectoryCategoryDepth($categoryID)

Get depth level of the category

int $categoryID ID of category

^ Top

GetDirectoryCategoryFilename()

Return filename of category

^ Top

GetDirectoryCategoryID()

Return category ID

^ Top

GetDirectoryCategoryName()

Get category name

^ Top

GetDirectoryCategoryPriority()

Return priority of category

^ Top

GetDirectoryCategorylinkID()

Return linkID describing category

^ Top

GetDirectoryLinkCategories($linkID=0)

Retrieve categories for the link

int $linkID ID of link

^ Top

GetDirectoryLinkDescription()

Get description of link

^ Top

GetDirectoryLinkEmail()

Get email of link

^ Top

GetDirectoryLinkFilename()

Get filename of link

^ Top

GetDirectoryLinkID()

Get ID of link

^ Top

GetDirectoryLinkPriority()

Get priority of link

^ Top

GetDirectoryLinkStatus()

Get status of link

^ Top

GetDirectoryLinkThumbnail()

Get thumbnail image for the website (link) from thumbshots.org

^ Top

GetDirectoryLinkTitle()

Get title of link

^ Top

GetDirectoryLinkURL()

Get URL of link

^ Top

GetDirectoryParentCategory($categoryID=0)

Retrieve parent category for the category

int $categoryID ID of category

^ Top

GetDirectoryParentCategoryID()

Return parent categoryID of category

^ Top

GetDirectoryTopCategory($categoryID=0)

Get top category for the category

int $categoryID ID of category

^ Top

LoopThroughDirectoryCategoryList($settings)

Loop through the categories and generate a category list

array $settings settings to specify how the category list should be displayed, see below:
int $settings["parentcategoryID"] - ID of parent category to start from
int $settings["type"] type of category list to be displayed - 0 public list, 1 links using UL, 2 dropdown menu using  , 3 checkboxes below each other;
boolean $settings["order"] - MySQL ORDER BY query part e.g. "priority DESC", "category"
boolean $settings["override"] - override current category filtering - 0 do nothing, 1 override and show as selected in dropdown
int $settings["depth"] - how deep the list should go from the parent category

^ Top