Class Subjects_Archon

Description
  • abstract:

Located in /packages/subjects/lib/core/archon.inc.php (line 2)


	
			
Method Summary
integer|Array countSubjects ([ $Alphabetical = false], [ $SubjectTypeID = 0], boolean $Alphabetical[optional], integer $SubjectTypeID[optional])
string createStringFromSubjectArray (Subject[] $arrSubjects, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], [ $SubDelimiter = ' - '], string $Delimiter[optional], integer $MakeIntoLink[optional], string $SubDelimiter[optional])
Subject[] getAllSubjects ([ $MakeIntoIndex = false], boolean $MakeIntoIndex[optional])
Subject[] getAllSubjectsForSubjectTypeID ( $SubjectTypeID)
SubjectSource[] getAllSubjectSources ()
SubjectType[] getAllSubjectTypes ()
Subject[] getChildSubjects (integer $ID, [integer $SubjectTypeID = 0])
Subject[] getSubjectArrayFromIDArray (integer[] $arrIDs)
integer getSubjectIDFromString (string $String, [integer $ParentID = 0])
Subject[] getSubjectsForChar (string $Char, [integer $SubjectTypeID = 0])
integer getSubjectSourceIDFromString (string $String)
integer getSubjectTypeIDFromString (string $String)
Creator[] searchSubjects (string $SearchQuery, [ $ParentID = NULL], [ $SubjectTypeID = 0], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $ParentID[optional], integer $SubjectTypeID[optional], integer $Limit[optional])
SubjectSource[] searchSubjectSources (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
SubjectType[] searchSubjectTypes (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
Subject[] traverseSubject (integer $ID)
Methods
countSubjects (line 16)

Returns the number of Subjects in the database

If $Alphabetical is set to true, an array will be returned with keys of a-z, #, and * each holding the count for Subject Subjects starting with that character. # represents all collections starting with a number, and * holds the total count of all collections.

  • access: public
integer|Array countSubjects ([ $Alphabetical = false],  $SubjectTypeID, boolean $Alphabetical[optional], integer $SubjectTypeID[optional])
  • boolean $Alphabetical[optional]
  • integer $SubjectTypeID[optional]
  • $Alphabetical
  • $SubjectTypeID
createStringFromSubjectArray (line 77)

Creates an formatted string from an array of Subject objects

  • access: public
string createStringFromSubjectArray (Subject[] $arrSubjects, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], [ $SubDelimiter = ' - '], string $Delimiter[optional], integer $MakeIntoLink[optional], string $SubDelimiter[optional])
  • Subject[] $arrSubjects
  • string $Delimiter[optional]
  • integer $MakeIntoLink[optional]
  • string $SubDelimiter[optional]
  • $Delimiter
  • $MakeIntoLink
  • $SubDelimiter
getAllSubjects (line 119)

Retrieves all Subjects from the database

If $MakeIntoIndex is false, the returned array of Subject objects is sorted by Subject and has IDs as keys.

If $MakeIntoIndex is true, the returned array is a two dimensional array, with the first dimension indexed with

  1. (representing numeric characters) and the lowercase characters a-z.
Each of those arrays will contain a sorted set of Subject objects, with the Subject's IDs as keys.

  • access: public
Subject[] getAllSubjects ([ $MakeIntoIndex = false], boolean $MakeIntoIndex[optional])
  • boolean $MakeIntoIndex[optional]
  • $MakeIntoIndex
getAllSubjectsForSubjectTypeID (line 169)

Retrieves all Subjects for a subject type from the database

The returned array of Subject objects is sorted by Subject and has IDs as keys.

  • access: public
Subject[] getAllSubjectsForSubjectTypeID ( $SubjectTypeID)
  • $SubjectTypeID
getAllSubjectSources (line 208)

Retrieves all Subject Sources from the database

The returned array of SubjectSource objects is sorted by SubjectSource and has IDs as keys.

  • access: public
SubjectSource[] getAllSubjectSources ()
getAllSubjectTypes (line 191)

Retrieves all Subject Types from the database

The returned array of SubjectType objects is sorted by SubjectType and has IDs as keys.

  • access: public
SubjectType[] getAllSubjectTypes ()
getChildSubjects (line 224)

Retrieves child Subjects for Subject specified by $ID

  • access: public
Subject[] getChildSubjects (integer $ID, integer $SubjectTypeID)
  • integer $ID
  • integer $SubjectTypeID
getSubjectArrayFromIDArray (line 252)

Retrieves an array containing Subject objects for each ID in $arrIDs

  • access: public
Subject[] getSubjectArrayFromIDArray (integer[] $arrIDs)
  • integer[] $arrIDs
getSubjectIDFromString (line 309)

Returns SubjectID value when passed the string value for a container type.

  • access: public
integer getSubjectIDFromString (string $String, integer $ParentID)
  • string $String
  • integer $ParentID
getSubjectsForChar (line 345)

Retrieves an array of Subject objects that begin with the character specified by $Char

  • access: public
Subject[] getSubjectsForChar (string $Char, integer $SubjectTypeID)
  • string $Char
  • integer $SubjectTypeID
getSubjectSourceIDFromString (line 392)

Returns SubjectSourceID value when passed the string value for a subject source.

  • access: public
integer getSubjectSourceIDFromString (string $String)
  • string $String
getSubjectTypeIDFromString (line 418)

Returns SubjectTypeID value when passed the string value for a container type.

  • access: public
integer getSubjectTypeIDFromString (string $String)
  • string $String
searchSubjects (line 445)

Searches the Subject database

  • access: public
Creator[] searchSubjects (string $SearchQuery, [ $ParentID = NULL],  $SubjectTypeID, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $ParentID[optional], integer $SubjectTypeID[optional], integer $Limit[optional])
  • string $SearchQuery
  • integer $ParentID[optional]
  • integer $SubjectTypeID[optional]
  • integer $Limit[optional]
  • $ParentID
  • $SubjectTypeID
  • $Limit
searchSubjectSources (line 549)

Searches the SubjectSource database

  • access: public
SubjectSource[] searchSubjectSources (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
  • string $SearchQuery
  • integer $Limit[optional]
  • $Limit
searchSubjectTypes (line 564)

Searches the SubjectType database

  • access: public
SubjectType[] searchSubjectTypes (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
  • string $SearchQuery
  • integer $Limit[optional]
  • $Limit
traverseSubject (line 579)

Returns an array containing Subject objects sorted from root to node

  • access: public
Subject[] traverseSubject (integer $ID)
  • integer $ID

Documentation generated on Wed, 05 Mar 2008 16:45:24 -0600 by phpDocumentor 1.3.1