コード例 #1
0
ファイル: AbstractEntity.php プロジェクト: AndreasA/commerce
 /**
  * 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);
 }
コード例 #2
0
 /**
  * Gets all attributes from this product
  *
  * @param int $uid Product uid
  *
  * @return array of attribute UID
  */
 public function getAttributes($uid)
 {
     return parent::getAttributes($uid, '');
 }