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
// if we want to change a given priority to the one declared by user | |
// we should use a 'sort_array' attribute from parent node | |
// fetch eZContentObjectTreeNode object | |
$node = eZContentObjectTreeNode::fetch( $nodeId ); | |
// get array with sorting attributes | |
$nodeSortArray = $node->attribute( 'sort_array' ); | |
// pass array as parameter |
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
$node = eZContentObject::fetch( $nodeId ); | |
$objectID = $node->attributes(); |
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
/** | |
* Slugify url passed as first argument. | |
* @param string $str | |
* @param string $delimiter | |
* @return string | |
*/ | |
private function slugify($str, $delimiter = '-') | |
{ | |
// setlocale is being used for iconv to let it know which character encoding to use | |
\setlocale(LC_ALL, 'en_US.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
file: lib/ezc/Archive/src/entry.php | |
@@ -196,11 +196,11 @@ class ezcArchiveEntry | |
{ | |
if ( $withPrefix ) | |
{ | |
- return $this->fileStructure->path; | |
+ return trim($this->fileStructure->path); | |
} | |
else | |
{ |
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
// file: lib/ezc/Archive/src/entry.php - function getPath - when eZComponents installed in eZ Publish dir | |
// OR | |
// file: /usr/share/php/ezc/Archive/entry.php - function getPath - when eZComponents installed globally | |
return $this->fileStructure->path; | |
// changes to this: | |
return trim($this->fileStructure->path); | |
// and |
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
sudo pear channel-discover components.ez.no | |
sudo pear install -a ezc/eZComponents |
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
SQL: | |
== | |
UPDATE `ezuser_setting` SET `is_enabled` = '1' WHERE `ezuser_setting`.`user_id` =14; | |
UPDATE `ezuser` SET `password_hash` = 'bab77ccf06f0b1f982e11c60f344c3c2' WHERE `ezuser`.`contentobject_id` =14; | |
SITE.INI: | |
== | |
[UserSettings] | |
HashType=md5_user |
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
export XDEBUG_CONFIG="idekey=netbeans-xdebug" |
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
# ... | |
[xdebug] | |
zend_extension='/usr/lib/php5/20121212/xdebug.so' | |
xdebug.var_display_max_children = 512 ; 128 | |
xdebug.var_display_max_data = 1024 ; 512 | |
xdebug.var_display_max_depth = 10 ; 3 | |
xdebug.collect_params = 2; 0 |
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
sudo apt-get install linux-headers-`uname -r` virtualbox-dkms virtualbox-guest-additions-iso | |
sudo dpkg-reconfigure virtualbox-dkms | |
sudo modprobe vboxdrv |
OlderNewer