Class: ItemProjectService

Source Location: /CORE/system/classes/item/ItemProjectService.php

Class ItemProjectService

Class Overview

Holds methods for receiving Project Values for Items.

The ItemProjectService MUST be intialized with an Itemtype!

Located in /CORE/system/classes/item/ItemProjectService.php [line 40]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: ItemProjectService.php,v 1.10 2009/02/27 23:50:34 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
ItemProjectService   ItemProjectService()   Initalizes a new ItemService for a special Itemtype.
void   existsProjectNum()   Checks whether the Project Numeric Value for ItemID and LanguageID and specified Key exists.
void   existsProjectText()   Checks whether the Project Text Value for ItemID and LanguageID and specified Key exists.
void   getAllNum()   Get all Project Numeric values for ItemID and LanguageID as Array.
void   getAllProjectNum()   Get all Project Numeric Values for ItemID and LanguageID.
void   getAllProjectText()   Get all Project Text Values for ItemID and LanguageID.
void   getAllText()   Get all Project Text values for ItemID and LanguageID as Array.
boolean   getBool()   Helper function to get a boolean (numeric) value from the meta fields.
void   getProjectNum()   Get a Project Numeric Value for ItemID and LanguageID for the specified Key.
void   getProjectText()   Get a Project Text Value for ItemID and LanguageID for the specified Key.

[ Top ]
Methods
Constructor ItemProjectService  [line 48]

  ItemProjectService ItemProjectService( int $itemtype  )

Initalizes a new ItemService for a special Itemtype.

Parameters:
int   $itemtype:  the Itemtype to get6 Project Values for


[ Top ]
existsProjectNum  [line 149]

  void existsProjectNum( int $itemid, int $languageid, String $key  )

Checks whether the Project Numeric Value for ItemID and LanguageID and specified Key exists.

Parameters:
int   $itemid:  the ItemID to get Project Numeric Values for
int   $languageid:  the LanguageID to get Project Numeric Values for
String   $key:  the key specifying your Project Text Value


[ Top ]
existsProjectText  [line 161]

  void existsProjectText( int $itemid, int $languageid, String $key  )

Checks whether the Project Text Value for ItemID and LanguageID and specified Key exists.

Parameters:
int   $itemid:  the ItemID to get Project Text Values for
int   $languageid:  the LanguageID to get Project Text Values for
String   $key:  the key specifying your Project Text Value


[ Top ]
getAllNum  [line 96]

  void getAllNum( int $itemid, int $languageid  )

Get all Project Numeric values for ItemID and LanguageID as Array.

Parameters:
int   $itemid:  the ItemID to get Project Numeric values for
int   $languageid:  the LanguageID to get Project Numeric values for


[ Top ]
getAllProjectNum  [line 113]

  void getAllProjectNum( int $itemid, int $languageid  )

Get all Project Numeric Values for ItemID and LanguageID.

Parameters:
int   $itemid:  the ItemID to get Project Numeric Values for
int   $languageid:  the LanguageID to get Project Numeric Values for


[ Top ]
getAllProjectText  [line 68]

  void getAllProjectText( int $itemid, int $languageid  )

Get all Project Text Values for ItemID and LanguageID.

Parameters:
int   $itemid:  the ItemID to get Project Text Values for
int   $languageid:  the LanguageID to get Project Text Values for


[ Top ]
getAllText  [line 79]

  void getAllText( int $itemid, int $languageid  )

Get all Project Text values for ItemID and LanguageID as Array.

Parameters:
int   $itemid:  the ItemID to get Project Text Values for
int   $languageid:  the LanguageID to get Project Text Values for


[ Top ]
getBool  [line 228]

  boolean getBool( $id $id, $language $language, $name $name, [$default $default = false]  )

Helper function to get a boolean (numeric) value from the meta fields.

Supply its name and the default value

Parameters:
$id   $id:  the item id
$language   $language:  the item language
$name   $name:  the values name
$default   $default:  the default value to return if the key is not set

API Tags:
Return:  the value


[ Top ]
getProjectNum  [line 137]

  void getProjectNum( int $itemid, int $languageid, String $key, [ $default = ""]  )

Get a Project Numeric Value for ItemID and LanguageID for the specified Key.

Parameters:
int   $itemid:  the ItemID to get Project Numeric Values for
int   $languageid:  the LanguageID to get Project Numeric Values for
String   $key:  the key specifying your Project Text Value
   $default: 


[ Top ]
getProjectText  [line 125]

  void getProjectText( int $itemid, int $languageid, String $key, [ $default = ""]  )

Get a Project Text Value for ItemID and LanguageID for the specified Key.

Parameters:
int   $itemid:  the ItemID to get Project Text Values for
int   $languageid:  the LanguageID to get Project Text Values for
String   $key:  the key specifying your Project Text Value
   $default: 


[ Top ]