/** * Checks if the uid is valid and available in the database * * @return bool true if uid is valid */ public function isValidUid() { if (!$this->databaseConnection) { $this->databaseConnection = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($this->databaseClass); } return $this->databaseConnection->isUid($this->uid); }
/** * Gets all attributes from this product * * @param int $uid Product uid * * @return array of attribute UID */ public function getAttributes($uid) { return parent::getAttributes($uid, ''); }