Skip to content

Instantly share code, notes, and snippets.

View radmiraal's full-sized avatar

Rens Admiraal radmiraal

View GitHub Profile
<div about="/dmeo/asdasd">
<article>
<div rel="feature">
<div about="/content1/" class="span3">
<h3 property="title">title</h3>
<div property="content">Curabitur blandit tempus porttitor.</div>
</div>
</div>
</article>
</div>
<?php
error_reporting(E_ALL ^ E_STRICT);
ini_set('display_errors', 1);
class FetchHandler {
/**
* @var string The path to this script
*/
protected $rootPath;
function exec_SELECTgetRows($select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '', $uidIndexField = '') {
$res = $this->exec_SELECTquery($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit);
if ($this->debugOutput) {
$this->debug('exec_SELECTquery');
}
if (!$this->sql_error()) {
$output = array();
if ($uidIndexField) {
➜ ehrm git:(development) ✗ flow3 doctrine:migrationgenerate
Array
(
[0] => dbuser.flow3_doctrine_migrationstatus
[1] => dbuser.typo3_party_domain_model_personname
[2] => dbuser.typo3_party_domain_model_person
[3] => dbuser.typo3_flow3_security_policy_role
[4] => dbuser.typo3_party_domain_model_electronicaddress
[5] => dbuser.typo3_party_domain_model_person_electronicaddresses_join
[6] => dbuser.typo3_flow3_mvc_routing_objectpathmapping
roles:
Administrator: [ User ]
User: [ ]
User1:
name: 'Some User Role Name'
packageKey: 'TYPO3.FLOW3'
parentRoles: [ 'User', 'TYPO3.FLOW3.Administrator' ]
class SomeRepository extends \TYPO3\FLOW3\Security\AccountRepository {
/**
* @param \TYPO3\FLOW3\Security\Policy\Role $role
* @return array
*/
public function findByRole(\TYPO3\FLOW3\Security\Policy\Role $role) {
// $query = $this->createQuery();
// return $query->matching($query->in('roles', array((string)$role)))->execute();
/**
* renders <f:then> child if the role could be found in the security context,
* otherwise renders <f:else> child.
*
* @param string $role The role
* @param string $packageKey PackageKey of the package defining the role
* @return string the rendered string
* @api
*/
public function render($role, $packageKey = NULL) {
authenticationStrategy: oneToken
providers:
LdapProvider:
provider: TYPO3\LDAP\Security\Authentication\Provider\LDAPProvider
entryPoint: WebRedirect
entryPointOptions:
uri: login.html
DefaultProvider:
provider: PersistedUsernamePasswordProvider
entryPoint: WebRedirect
<div class="t3-contentelement typo3-typo3-html" id="cf5f3b560-55ff-484e-97e0-3e3568f4755c" typeof="typo3:TYPO3.TYPO3:Html" about="/sites/phoenixdemotypo3org/homepage/anotherpage/thirdlevelpage/main/node504b2ed38dad5@user-admin">
<script type="text/x-typo3" property="typo3:__contenttype">TYPO3.TYPO3:Html</script>
<script type="text/x-typo3" property="typo3:source"></script>
<script type="text/x-typo3" property="typo3:title"></script>
<script type="text/x-typo3" property="typo3:_hiddenAfterDateTime" datatype="xsd:date"></script>
<script type="text/x-typo3" property="typo3:_hiddenBeforeDateTime" datatype="xsd:date"></script>
<script type="text/x-typo3" property="typo3:_hidden" datatype="xsd:boolean">false</script>
<script type="text/x-typo3" property="typo3:_removed" datatype="xsd:boolean">false</script>
<script type="text/x-typo3" property="typo3:_typoscriptPath">page<TYPO3.TYPO3:Page>/body<TYPO3.TypoScript:FluidRenderer>/sections/main<TYPO3.TYPO3:Section>/itemRenderer<TYPO3.TypoScript:Case>/matchers/99
$deployment->onInitialize(function() use ($workflow, $application) {
$workflow->removeTask('typo3.surf:flow3:setfilepermissions');
$workflow->removeTask('typo3.surf:flow3:copyconfiguration');
$workflow->removeTask('typo3.surf:gitcheckout');
$workflow->addTask('typo3.surf:gitcheckout', 'update', $application);
$workflow->afterTask('beech.gitcheckout', 'beech.fetchQueuedPatches', $application);
});
$workflow->defineTask('beech.gitcheckout', 'typo3.surf:gitcheckout', array(
'branch' => 'development'