Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

tx_commerce_navigation Class Reference

Inheritance diagram for tx_commerce_navigation:

user_tx_commerce_catmenu_pub List of all members.

Public Member Functions

 init ($content, $conf)
 fixPathParents (&$pathArray, $chosenCatUid)
 getRootCategory ()
 makeErrorMenu ($max=5, $mDepth=1)
 processConf ($conf)
 makeArrayPostRender ($uidPage, $mainTable, $tableMm, $tableSubMain, $tableSubMm, $uid_root, $mDepth=1, $path=0)
 makeSubChildArrayPostRender ($uidPage, $mainTable, $tableMm, $uid_root, $mDepth=1, $path=0, $manuuid=false)
 processArrayPostRender (&$treeArray, $path=array(), $mDepth)
 getDataRow ($uid, $tableName)
 isLeaf ($uid, $tableMm, $subTableMM)
 hasSubChild ($uid, $tableMm)
 getActiveCats ()
 clear ($menuArr, $conf)
 CommerceRootline ($content, $conf)

Public Attributes

 $prefixId = 'tx_commerce_pi1'
 $activeCats = array()
 $mConf
 $cat
 $tree
 $mTree
 $out
 $mDepth = 2
 $entryCat = 0
 $listNodes = array()
 $manufacturerIdentifier = PHP_INT_MAX
 $useRootlineInformationToUrl = 0
 $pathParents = array()
 $translationMode = 'hideNonTranslated'

Member Function Documentation

tx_commerce_navigation::clear menuArr,
conf
 

Function clears all subelements. This is needed for clear error with mix up pages and categories

Parameters:
array $menuArr: Array with menu item
array $conf: TSconfig, not used
Returns:
array return the cleaned menu item

tx_commerce_navigation::CommerceRootline content,
conf
 

Method for gerenartin the rootlineMenue to use in TS

Author:
Ingo Schmitt <is@marketing-factory.de>
Parameters:
$content string $content passed to method
$conf Array TS Array
Returns:
array array for the menurendering of TYPO3
Add product to rootline, if a product is displayed and showProducts is set via TS

Currentyl no Navtitle in tx_commerce_products 'nav_title' => $ProductObject->get_navtitle(),

Returns an array of array for the TS rootline Recursive Call to buld rootline

Author:
Ingo Schmitt <is@marketing-factory.de>
Since:
21.07.2006
Only add if Rootline below $this->category

Stores the string value $data in the 'cache_hash' table with the hash key, $hash, and visual/symbolic identification, $ident IDENTICAL to the function by same name found in t3lib_page: Usage: 2

Parameters:
string 32 bit hash string (eg. a md5 hash of a serialized array identifying the data being stored)
string The data string. If you want to store an array, then just serialize it first.
string $ident is just a textual identification in order to inform about the content! May be 20 characters long.
Returns:
void
Retrieves the string content stored with hash key, $hash, in cache_hash IDENTICAL to the function by same name found in t3lib_page: Usage: 2

Parameters:
string Hash key, 32 bytes hex
integer $expTime represents the expire time in seconds. For instance a value of 3600 would allow cached content within the last hour, otherwise nothing is returned.
Returns:
string
Merges the Array elementes of the second element into the first element
Parameters:
array $arr1
array $arr2
Generates the Rootline of a category to have the right parent elements if a category has more than one parentes
Parameters:
array $tree Menuetree
integer $choosencat The actual category
integer $expand If the menue has to be expanded
Returns:
array Rootline as Array
Since:
28.04.2007
Author:
luc muller <l.muller@ameos.com>
Adds the manuafacturer To the categoiry, as simulated category
Author:
Luc Muller <l.mueller@ameos.com>
Parameters:
integer $pid Page PID for the level
integer $uidPage UidPage for the level
string $mainTable Main Database Table
string $tableMm RelationChip Table
string $tableSUbMain Sub Table below the original table
string $tableSubMm Sub Table Relationship
integer $iIdCat Category ID
integer $mDepth Menue Deepth
string $path Path for fast resolving
See also:
MakeArrayPostRender
not a realy good solution

Sorts all items of the array menu

Author:
Ricardo Mires <ricardo.mieres@502.cl>
Parameters:
array byRef $treeArray
Returns:
void
Sorts a list of menu items
Author:
Ricardo Mieres <ricardo.mieres@502.cl>
Parameters:
array byRef $listNodes
string $sortType
Returns:
boolean
Todo:
: implement sortType:alphabetiAsc,byUid, bySorting

tx_commerce_navigation::fixPathParents &$  pathArray,
chosenCatUid
 

tx_commerce_navigation::getActiveCats  ) 
 

Gets all active categories from the rootline to change the ItemState

Returns:
array array of all active Categories

tx_commerce_navigation::getDataRow uid,
tableName
 

Gets the data to fill a node

Author:
Ricardo Mieres <ricardo.mieres@502.cl>
Parameters:
int $uid
string $tableName
Returns:
array
Get Overlay, if availiabe

tx_commerce_navigation::getRootCategory  ) 
 

tx_commerce_navigation::hasSubChild uid,
tableMm
 

Determines if a item has sub items in another tb table

Author:
Ricardo Mieres <ricardo.mieres@502.cl>
Parameters:
int $uid
string $tableMm
Returns:
int : 0|1|2

tx_commerce_navigation::init content,
conf
 

Init Method for initialising the navigation

Parameters:
$content string $content passed to method
$conf Array TS Array
Returns:
array array for the menurendering of TYPO3
Detect if a user is logged in and if he or she has usergroups as we have to take in accout, that different usergroups may have different rights on the commerce tree, so consider this whe calculation the cache hash.

Unique Hash for this usergroup and page to display the navigation

Sorting Options, there is only one type "alphabetiDesc" :) the others must to program

Todo:
: implement sortType:alphabetiAsc,byUid, bySorting

Sorting Options, there is only one type "alphabetiDesc" :) the others must to program

Todo:
: implement sortType:alphabetiAsc,byUid, bySorting

If a product is shown, we have to detect the parent category as well even if wo haven't walked thrue the categories

Bulild the path by or own

if the methode getRootLine fail, we take the path direct from the DB.

Strip the Staring point and the value 0

If no Category is choosen by the user, so you just render the default menue no rootline for the categories is needed and the depth is 0

tx_commerce_navigation::isLeaf uid,
tableMm,
subTableMM
 

Determines if a item has no sub item

Author:
Ricardo Mieres <ricardo.mieres@502.cl>
Parameters:
int $uid
string $tableMm
string $subTableMM
Returns:
int : 0|1|2

tx_commerce_navigation::makeArrayPostRender uidPage,
mainTable,
tableMm,
tableSubMain,
tableSubMm,
uid_root,
mDepth = 1,
path = 0
 

Makes the post array,which the typo3 render Function will be work

Author:
Ricardo Mieres <ricardo@mieres.cl>
Parameters:
array $table: main table
array $table_mm: mm table
array $uid_root:
Returns:
array TSConfig with ItemArrayProcFunc
Add some hooks for custom sorting

tx_commerce_navigation::makeErrorMenu max = 5,
mDepth = 1
 

tx_commerce_navigation::makeSubChildArrayPostRender uidPage,
mainTable,
tableMm,
uid_root,
mDepth = 1,
path = 0,
manuuid = false
 

Makes a set of ItemMenu product list of a category.

Author:
Ricardo Mieres <ricardo.mieres@502.cl>
Parameters:
array $mainTable: main table
array $table_mm: mm table
array $uid_root: category Uid
array $mDepth:
array $path:
integer $Manufacturere Uid
Returns:
array array to be processed by HMENU
Add some hooks for custom sorting

tx_commerce_navigation::processArrayPostRender &$  treeArray,
path = array(),
mDepth
 

Process the menuArray to set state for a selected item

Author:
Ricardo Mieres <ricardo.mieres@502.cl>
Parameters:
array byRef $treeArray
array $path: path of the itemMen
array $mDepth: depth of the itemMenu
Sets this node (Product) as current item

tx_commerce_navigation::processConf conf  ) 
 

Sets the clear Function for each MenuItem

Parameters:
array $conf: TSconfig to parse
Returns:
array TSConfig with ItemArrayProcFunc


Member Data Documentation

tx_commerce_navigation::$activeCats = array()
 

tx_commerce_navigation::$cat
 

tx_commerce_navigation::$entryCat = 0
 

tx_commerce_navigation::$listNodes = array()
 

tx_commerce_navigation::$manufacturerIdentifier = PHP_INT_MAX
 

tx_commerce_navigation::$mConf
 

tx_commerce_navigation::$mDepth = 2
 

tx_commerce_navigation::$mTree
 

tx_commerce_navigation::$out
 

tx_commerce_navigation::$pathParents = array()
 

tx_commerce_navigation::$prefixId = 'tx_commerce_pi1'
 

tx_commerce_navigation::$translationMode = 'hideNonTranslated'
 

Translation Mode for getRecordOverlay

See also:
class.t3lib_page.php private

tx_commerce_navigation::$tree
 

tx_commerce_navigation::$useRootlineInformationToUrl = 0
 


The documentation for this class was generated from the following file:
Generated on Sun Jan 13 23:12:22 2008 for tx_commerce by  doxygen 1.4.4