Skip to content

Instantly share code, notes, and snippets.

if ((boolean) $GLOBALS['TSFE']->beUserLogin === TRUE) {
unset($GLOBALS['TCA']['tt_content']['ctrl']['enablecolumns']['starttime']);
unset($GLOBALS['TCA']['tt_content']['ctrl']['enablecolumns']['endtime']);
}
$model->setStatus(Model::STATUS_INVOICE);
/**
* Get all electronic address types
*
* @return array $allElectronicAddressTypes
*/
public function getAllElectronicAddressTypes() {
return $this->getConstants('TYPE_');
}
/**
if ($operand === NULL) {
return $this->queryBuilder->expr()->isNull($this->getPropertyNameWithAlias($propertyName));
}
if ($caseSensitive === TRUE) {
return $this->queryBuilder->expr()->eq($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
}
return $this->queryBuilder->expr()->eq($this->queryBuilder->expr()->lower($this->getPropertyNameWithAlias($propertyName)), $this->getParamNeedle(strtolower($operand)));
/**
* Inject some page variables
*
* @param Tx_Extbase_MVC_View_ViewInterface $view
* @return void
*/
protected function initializeView(Tx_Extbase_MVC_View_ViewInterface $view) {
parent::initializeView($view);
$this->view->assign('var', $var);
}
/**
* @var \TYPO3\Flow\Persistence\PersistenceManagerInterface
*/
protected $persistenceManager;
´
/**
* Injects the Persistence Manager
*
* @param \TYPO3\Flow\Persistence\PersistenceManagerInterface $persistenceManager
* @return void
<?php
namespace TYPO3\Flow\Validation\Validator;
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
/**
* @var Tx_Acme_Repository_AcmeRepository
*/
protected $repository;
/**
* @return void
*/
public function initializeObject() {
<?php
namespace TYPO3\Flow\Validation\Validator;
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
<?php
namespace TYPO3\Flow\Validation\Validator;
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *