Class: Image

Source Location: /CORE/system/classes/image/Image.php

Class Image

Class Overview

This represents an Image Item.

Located in /CORE/system/classes/image/Image.php [line 38]

MasterItemType
   |
   --Itemtype
      |
      --Item
         |
         --Image
Author(s):
  • Kevin Papst
Information Tags:
Version:  $Id: Image.php,v 1.10 2008/02/12 23:28:11 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Item

Item::Item()
Full construtor for fetching an specified Item from the Database.
Item::exists()
Checks whether this Item exists or not.
Item::getCatchwords()
Returns the Item Catchwords.
Item::getChildren()
Returns all children of this item that are available in the same language as the item.
Item::getChilds()
Returns all children of this item that are available in the same language as the item.
Item::getContent()
Fetches the Content from the linked File.
Item::getCreateByID()
Returns the User ID this Item was created by.
Item::getCreateDate()
Returns the Timestamp, when the Item was created.
Item::getDescription()
Returns the Item Description.
Item::getFullURL()
Returns the absolute Path to the Items Content File.
Item::getID()
Returns the Item ID.
Item::getItemDate()
Returns the desired ItemDate field.
Item::getItemNum()
Returns the desired ItemNum field.
Item::getItemText()
Returns the desired ItemText field.
Item::getItemType()
Returns the Itemtype ID.
Item::getLanguageID()
Returns the Language ID of this Item.
Item::getLastByID()
Returns the ID of the last User that updated this Item.
Item::getLastDate()
Returns the timestamp of the last changes on this Item (like Description or Content).
Item::getMimetype()
Returns the Items Mimetype.
Item::getName()
Fetch the Items Name.
Item::getOriginalName()
Returns the original File Name. This MUST only work with uploaded Files.
Item::getParentID()
Returns the Parents Item ID.
Item::getPosition()
Returns the Position of this Item.
Item::getSize()
Returns the Size of the linked File.
Item::getUniqueName()
Returns the unique name, which is only a backup of the unique_name table for fast access.
Item::getURL()
Returns the URL where this Items Content is stored.
Item::getValidFrom()
Returns the Timestamp, from when this Item will be valid (and therefor visible).
Item::getValidTo()
Returns the Timestamp, until this Item is valid (and therefor visible).
Item::getViews()
Returns the amount of views for this Item.
Item::getWorkflowName()
Returns the name of the configured Workflow.
Item::hasChildren()
Checks if the Item has children in the same Language as the item.
Item::hasChilds()
Checks if the Item has children in the same Language as the item.
Item::isHidden()
returns whether the this items flag is set to hidden or not.
Item::isInTrash()
returns whether this items flag set to trashed or not.
Item::lastModified()
Returns the last modified date of the File (filemtime).
Item::toString()
Simple toString() implementation to make debugging easier.

Inherited From Itemtype

Itemtype::Itemtype()
Itemtype::getClass()
Itemtype::getClassName()
Itemtype::getCommand()
Itemtype::getDirectory()
Itemtype::getItemtypeID()
Itemtype::initItemtype()

Inherited From MasterItemType

MasterItemType::MasterItemType()
Empty Constructor.
MasterItemType::countItemtypes()
Returns how many Itemtypes are known by the System.
MasterItemType::getClassForItemType()
Returns a new instance of the Class for the given Itentype ID.
MasterItemType::getClassNameForItemType()
Returns the Classname for the given Itentype ID.
MasterItemType::getCommandForItemType()
Return the Command for the given Itemtype ID.
MasterItemType::getDirectoryForItemType()
Return the Directory for the given Itemtype ID.
MasterItemType::getItemTypeForCommand()
Get the Itemtype ID for the given Command (or null).
MasterItemType::getSelectColumns()
Returns the Select Columns to be used for Item- and Treeselects.

[ Top ]
Method Summary
Image   Image()   This intializes the Object with the given Image ID If you pass null as ID the Object will not be initialized but only instantiated.

[ Top ]
Methods
Constructor Image  [line 50]

  Image Image( [int $id = null], [mixed $treetype = ITEM_LOAD_FULL], [String $language = '']  )

This intializes the Object with the given Image ID If you pass null as ID the Object will not be initialized but only instantiated.

Parameters:
int   $id:  id the Image ID or null
mixed   $treetype:  treetype the TreeType
String   $language:  language the Language


[ Top ]