示例#1
0
 /**
  * Creates this object.
  *
  * @param string $tableName Name of the table to be working on
  * @throws \RuntimeException
  */
 public function __construct($tableName = null)
 {
     parent::__construct();
     if (!empty($tableName)) {
         $this->setItemTableName($tableName);
     } elseif (empty($this->itemTableName)) {
         throw new \RuntimeException(\TYPO3\CMS\Core\Collection\StaticRecordCollection::class . ' needs a valid itemTableName.', 1330293778);
     }
 }
 /**
  * Creates this object.
  *
  * @param string $tableName Name of the table to be working on
  * @throws \RuntimeException
  */
 public function __construct($tableName = NULL)
 {
     parent::__construct();
     if (!empty($tableName)) {
         $this->setItemTableName($tableName);
     } elseif (empty($this->itemTableName)) {
         throw new \RuntimeException('TYPO3\\CMS\\Core\\Category\\Collection\\CategoryCollection needs a valid itemTableName.', 1341826168);
     }
 }
示例#3
0
 /**
  * Creates this object.
  *
  * @param string $tableName Name of the table to be working on
  * @param string $fieldName Name of the field where the categories relations are defined
  * @throws \RuntimeException
  */
 public function __construct($tableName = NULL, $fieldName = NULL)
 {
     parent::__construct();
     if (!empty($tableName)) {
         $this->setItemTableName($tableName);
     } elseif (empty($this->itemTableName)) {
         throw new \RuntimeException(\TYPO3\CMS\Core\Category\Collection\CategoryCollection::class . ' needs a valid itemTableName.', 1341826168);
     }
     if (!empty($fieldName)) {
         $this->setRelationFieldName($fieldName);
     }
 }
示例#4
0
 /**
  * Creates this object.
  *
  * @param string $tableName Name of the table to be working on
  * @param string $fieldName Name of the field where the categories relations are defined
  * @throws \RuntimeException
  */
 public function __construct($tableName = null, $fieldName = null)
 {
     parent::__construct();
     if (!empty($tableName)) {
         $this->setItemTableName($tableName);
     } elseif (empty($this->itemTableName)) {
         throw new \RuntimeException(self::class . ' needs a valid itemTableName.', 1341826168);
     }
     if (!empty($fieldName)) {
         $this->setRelationFieldName($fieldName);
     }
 }