This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Loads a user session | |
* @param string $sessionId | |
* | |
* @return boolean | |
*/ | |
public function loadUserSession($sessionId) { | |
$this->feUserAuth->id = $sessionId; | |
$this->feUserAuth->fetchSessionData(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE <TABLENAME> CHANGE <COLUMNNAME> <COLUMNNAME> VARCHAR(255) CHARACTER SET latin1; | |
ALTER TABLE <TABLENAME> CHANGE <COLUMNNAME> <COLUMNNAME> VARBINARY(255); | |
ALTER TABLE <TABLENAME> CHANGE <COLUMNNAME> <COLUMNNAME> VARCHAR(255) CHARACTER SET utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:format.printf arguments="{number: '{singleDigitToDisplayWithLeadingZero}'}">%1$02d</f:format.printf> | |
How can that be written inline? | |
Possible Workaround (Ugly, since we need to set the format in the controller) | |
Controller: | |
<?php | |
$this->view->assign('monthFormat', '%1$02d'); | |
?> | |
View: | |
{monthFormat-> f:format.printf(arguments: {1:'{singleDigitToDisplayWithLeadingZero}'})} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Finds incompleted transactions for a user. Used to have only one single | |
* transaction. | |
* | |
* @param $customerId | |
* @internal param string $customerNumber | |
* @return Tx_Extbase_Persistence_QueryResultInterface | |
*/ | |
public function findIncompleteByCustomerId($customerId) { | |
$query = $this->createQuery(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
"strings" | |
"gopkg.in/yaml.v2" | |
) |