Mage_Downloadable_Model_Link Class Reference

Inheritance diagram for Mage_Downloadable_Model_Link:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 getSearchableData ($productId, $storeId)

Static Public Member Functions

static getLinkDir ()
static getBaseTmpPath ()
static getBasePath ()
static getBaseSampleTmpPath ()
static getBaseSamplePath ()

Public Attributes

const XML_PATH_LINKS_TITLE = 'catalog/downloadable/links_title'
const XML_PATH_DEFAULT_DOWNLOADS_NUMBER = 'catalog/downloadable/downloads_number'
const XML_PATH_TARGET_NEW_WINDOW = 'catalog/downloadable/links_target_new_window'
const XML_PATH_CONFIG_IS_SHAREABLE = 'catalog/downloadable/shareable'
const LINK_SHAREABLE_YES = 1
const LINK_SHAREABLE_NO = 0
const LINK_SHAREABLE_CONFIG = 2

Protected Member Functions

 _construct ()
 _afterSave ()


Detailed Description

Definition at line 34 of file Link.php.


Member Function Documentation

_afterSave (  )  [protected]

Enter description here...

Returns:
Mage_Downloadable_Model_Link

Reimplemented from Mage_Core_Model_Abstract.

Definition at line 70 of file Link.php.

00071     {
00072         $this->getResource()->saveItemTitleAndPrice($this);
00073         return parent::_afterSave();
00074     }

_construct (  )  [protected]

Initialize resource model

Reimplemented from Varien_Object.

Definition at line 49 of file Link.php.

00050     {
00051         $this->_init('downloadable/link');
00052         parent::_construct();
00053     }

static getBasePath (  )  [static]

Retrieve Base files path

Returns:
string

Definition at line 91 of file Link.php.

00092     {
00093         return Mage::getBaseDir('media') . DS . 'downloadable' . DS . 'files' . DS . 'links';
00094     }

static getBaseSamplePath (  )  [static]

Retrieve base sample path

Returns:
string

Definition at line 111 of file Link.php.

00112     {
00113         return Mage::getBaseDir('media') . DS . 'downloadable' . DS . 'files' . DS . 'link_samples';
00114     }

static getBaseSampleTmpPath (  )  [static]

Retrieve base sample temporary path

Returns:
string

Definition at line 101 of file Link.php.

00102     {
00103         return Mage::getBaseDir('media') . DS . 'downloadable' . DS . 'tmp' . DS . 'link_samples';
00104     }

static getBaseTmpPath (  )  [static]

Retrieve base temporary path

Returns:
string

Definition at line 81 of file Link.php.

00082     {
00083         return Mage::getBaseDir('media') . DS . 'downloadable' . DS . 'tmp' . DS . 'links';
00084     }

static getLinkDir (  )  [static]

Return link files path

Returns:
string

Definition at line 60 of file Link.php.

00061     {
00062         return Mage::getBaseDir();
00063     }

getSearchableData ( productId,
storeId 
)

Retrieve links searchable data

Parameters:
int $productId
int $storeId
Returns:
array

Definition at line 123 of file Link.php.

00124     {
00125         return $this->_getResource()
00126             ->getSearchableData($productId, $storeId);
00127     }


Member Data Documentation

Definition at line 43 of file Link.php.

const LINK_SHAREABLE_NO = 0

Definition at line 42 of file Link.php.

const LINK_SHAREABLE_YES = 1

Definition at line 41 of file Link.php.

const XML_PATH_CONFIG_IS_SHAREABLE = 'catalog/downloadable/shareable'

Definition at line 39 of file Link.php.

const XML_PATH_DEFAULT_DOWNLOADS_NUMBER = 'catalog/downloadable/downloads_number'

Definition at line 37 of file Link.php.

const XML_PATH_LINKS_TITLE = 'catalog/downloadable/links_title'

Definition at line 36 of file Link.php.

const XML_PATH_TARGET_NEW_WINDOW = 'catalog/downloadable/links_target_new_window'

Definition at line 38 of file Link.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:08 2009 for Magento by  doxygen 1.5.8