repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
52
3.87M
func_code_tokens
listlengths
15
672k
func_documentation_string
stringlengths
1
47.2k
func_documentation_tokens
listlengths
1
3.92k
split_name
stringclasses
1 value
func_code_url
stringlengths
85
339
koala-framework/koala-framework
Kwf/Exception.php
Kwf_Exception.logOrThrow
public function logOrThrow() { $this->log(); if (!self::isDebug()) { if (PHP_SAPI == 'cli') { file_put_contents('php://stderr', $this->__toString()."\n"); } return; } throw $this; }
php
public function logOrThrow() { $this->log(); if (!self::isDebug()) { if (PHP_SAPI == 'cli') { file_put_contents('php://stderr', $this->__toString()."\n"); } return; } throw $this; }
[ "public", "function", "logOrThrow", "(", ")", "{", "$", "this", "->", "log", "(", ")", ";", "if", "(", "!", "self", "::", "isDebug", "(", ")", ")", "{", "if", "(", "PHP_SAPI", "==", "'cli'", ")", "{", "file_put_contents", "(", "'php://stderr'", ",", ...
Online: Schreibt die Exception nur ins log Lokal: wirft die exception
[ "Online", ":", "Schreibt", "die", "Exception", "nur", "ins", "log", "Lokal", ":", "wirft", "die", "exception" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Exception.php#L27-L37
koala-framework/koala-framework
Kwf/Model/Row/Data/Abstract.php
Kwf_Model_Row_Data_Abstract.setData
public function setData($data) { foreach (array_keys($this->_cleanData) as $k) { if (!isset($this->_data[$k]) || $this->_cleanData[$k] === $this->_data[$k]) { //nicht ge�ndert if (isset($data[$k])) { $this->_data[$k] = $data[$k]; ...
php
public function setData($data) { foreach (array_keys($this->_cleanData) as $k) { if (!isset($this->_data[$k]) || $this->_cleanData[$k] === $this->_data[$k]) { //nicht ge�ndert if (isset($data[$k])) { $this->_data[$k] = $data[$k]; ...
[ "public", "function", "setData", "(", "$", "data", ")", "{", "foreach", "(", "array_keys", "(", "$", "this", "->", "_cleanData", ")", "as", "$", "k", ")", "{", "if", "(", "!", "isset", "(", "$", "this", "->", "_data", "[", "$", "k", "]", ")", "...
internal
[ "internal" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Model/Row/Data/Abstract.php#L19-L32
koala-framework/koala-framework
Kwc/Basic/LinkTag/Intern/Events.php
Kwc_Basic_LinkTag_Intern_Events._getPageIdsFromRecursiveEvent
private function _getPageIdsFromRecursiveEvent(Kwf_Component_Event_Component_RecursiveAbstract $event) { $c = $event->component; $ids = array(); if ($c->isPage) { $ids[] = (string)$c->dbId; } if (isset($c->generator) && $c->generator instanceof Kwc_Root_Category_G...
php
private function _getPageIdsFromRecursiveEvent(Kwf_Component_Event_Component_RecursiveAbstract $event) { $c = $event->component; $ids = array(); if ($c->isPage) { $ids[] = (string)$c->dbId; } if (isset($c->generator) && $c->generator instanceof Kwc_Root_Category_G...
[ "private", "function", "_getPageIdsFromRecursiveEvent", "(", "Kwf_Component_Event_Component_RecursiveAbstract", "$", "event", ")", "{", "$", "c", "=", "$", "event", "->", "component", ";", "$", "ids", "=", "array", "(", ")", ";", "if", "(", "$", "c", "->", "...
this method returns all child ids needed for deleting recursively
[ "this", "method", "returns", "all", "child", "ids", "needed", "for", "deleting", "recursively" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Basic/LinkTag/Intern/Events.php#L66-L79
koala-framework/koala-framework
Kwc/Basic/LinkTag/Intern/Events.php
Kwc_Basic_LinkTag_Intern_Events.getComponentsForTarget
public static function getComponentsForTarget($componentClass, $targetIds, $includeSubpages) { $ret = array(); foreach (self::_getComponentDbIdsForTarget($componentClass, $targetIds, $includeSubpages) as $dbId) { $ret = array_merge($ret, Kwf_Component_Data_Root::getInstance()->getCompone...
php
public static function getComponentsForTarget($componentClass, $targetIds, $includeSubpages) { $ret = array(); foreach (self::_getComponentDbIdsForTarget($componentClass, $targetIds, $includeSubpages) as $dbId) { $ret = array_merge($ret, Kwf_Component_Data_Root::getInstance()->getCompone...
[ "public", "static", "function", "getComponentsForTarget", "(", "$", "componentClass", ",", "$", "targetIds", ",", "$", "includeSubpages", ")", "{", "$", "ret", "=", "array", "(", ")", ";", "foreach", "(", "self", "::", "_getComponentDbIdsForTarget", "(", "$", ...
used in trl
[ "used", "in", "trl" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Basic/LinkTag/Intern/Events.php#L147-L154
koala-framework/koala-framework
Kwf/Benchmark/Profile.php
Kwf_Benchmark_Profile.stop
public function stop() { $this->_stop = microtime(true); $this->duration = $this->_stop - $this->_start; if (function_exists('memory_get_usage')) { $this->_memoryStop = memory_get_usage(); $this->memory = $this->_memoryStop - $this->_memoryStart; } if ...
php
public function stop() { $this->_stop = microtime(true); $this->duration = $this->_stop - $this->_start; if (function_exists('memory_get_usage')) { $this->_memoryStop = memory_get_usage(); $this->memory = $this->_memoryStop - $this->_memoryStart; } if ...
[ "public", "function", "stop", "(", ")", "{", "$", "this", "->", "_stop", "=", "microtime", "(", "true", ")", ";", "$", "this", "->", "duration", "=", "$", "this", "->", "_stop", "-", "$", "this", "->", "_start", ";", "if", "(", "function_exists", "...
Beendet eine Sequenz
[ "Beendet", "eine", "Sequenz" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Benchmark/Profile.php#L90-L107
koala-framework/koala-framework
Kwc/Legacy/Columns/Layout.php
Kwc_Legacy_Columns_Layout.getChildContentWidth
public function getChildContentWidth(Kwf_Component_Data $data, Kwf_Component_Data $child) { $ownWidth = parent::getChildContentWidth($data, $child); $w = $this->_getWidth($data, $child, $ownWidth); if (is_int($w)) { return $w; //fix with } $sumUsedWith = 0; ...
php
public function getChildContentWidth(Kwf_Component_Data $data, Kwf_Component_Data $child) { $ownWidth = parent::getChildContentWidth($data, $child); $w = $this->_getWidth($data, $child, $ownWidth); if (is_int($w)) { return $w; //fix with } $sumUsedWith = 0; ...
[ "public", "function", "getChildContentWidth", "(", "Kwf_Component_Data", "$", "data", ",", "Kwf_Component_Data", "$", "child", ")", "{", "$", "ownWidth", "=", "parent", "::", "getChildContentWidth", "(", "$", "data", ",", "$", "child", ")", ";", "$", "w", "=...
- keine breitenangabe (restliche breite wird aufgezeilt)
[ "-", "keine", "breitenangabe", "(", "restliche", "breite", "wird", "aufgezeilt", ")" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Legacy/Columns/Layout.php#L27-L51
koala-framework/koala-framework
Kwf/Util/RtrList.php
Kwf_Util_RtrList.getBadKeys
static public function getBadKeys(array $emails) { $cfg = Kwf_Registry::get('config'); $client = new Kwf_Srpc_Client(array( 'serverUrl' => $cfg->service->rtrlist->url )); return $client->getBadKeys($emails); }
php
static public function getBadKeys(array $emails) { $cfg = Kwf_Registry::get('config'); $client = new Kwf_Srpc_Client(array( 'serverUrl' => $cfg->service->rtrlist->url )); return $client->getBadKeys($emails); }
[ "static", "public", "function", "getBadKeys", "(", "array", "$", "emails", ")", "{", "$", "cfg", "=", "Kwf_Registry", "::", "get", "(", "'config'", ")", ";", "$", "client", "=", "new", "Kwf_Srpc_Client", "(", "array", "(", "'serverUrl'", "=>", "$", "cfg"...
Checks mail addresses against the rtr-ecg list TODO: make this an implementation of an interface @param array $emails The emails that should be checked @return array $result The clean array without the rtr-matched addresses
[ "Checks", "mail", "addresses", "against", "the", "rtr", "-", "ecg", "list" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/RtrList.php#L12-L19
koala-framework/koala-framework
Kwf/Cache/Simple.php
Kwf_Cache_Simple._getFileNameForCacheId
public static function _getFileNameForCacheId($cacheId) { $cacheId = str_replace('/', '_', base64_encode($cacheId)); if (strlen($cacheId) > 50) { $cacheId = substr($cacheId, 0, 50).md5($cacheId); } return "cache/simple/".$cacheId; }
php
public static function _getFileNameForCacheId($cacheId) { $cacheId = str_replace('/', '_', base64_encode($cacheId)); if (strlen($cacheId) > 50) { $cacheId = substr($cacheId, 0, 50).md5($cacheId); } return "cache/simple/".$cacheId; }
[ "public", "static", "function", "_getFileNameForCacheId", "(", "$", "cacheId", ")", "{", "$", "cacheId", "=", "str_replace", "(", "'/'", ",", "'_'", ",", "base64_encode", "(", "$", "cacheId", ")", ")", ";", "if", "(", "strlen", "(", "$", "cacheId", ")", ...
for 'file' backend
[ "for", "file", "backend" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Cache/Simple.php#L126-L133
koala-framework/koala-framework
Kwf/Cache/Simple.php
Kwf_Cache_Simple._clear
public static function _clear() { if (self::getBackend() == 'memcache') { if (!Kwf_Config::getValue('cacheSimpleNamespace')) { //increment namespace $mc = Kwf_Cache_Simple::getMemcache(); if ($mc->get(Kwf_Cache_Simple::$uniquePrefix.'cache_namespac...
php
public static function _clear() { if (self::getBackend() == 'memcache') { if (!Kwf_Config::getValue('cacheSimpleNamespace')) { //increment namespace $mc = Kwf_Cache_Simple::getMemcache(); if ($mc->get(Kwf_Cache_Simple::$uniquePrefix.'cache_namespac...
[ "public", "static", "function", "_clear", "(", ")", "{", "if", "(", "self", "::", "getBackend", "(", ")", "==", "'memcache'", ")", "{", "if", "(", "!", "Kwf_Config", "::", "getValue", "(", "'cacheSimpleNamespace'", ")", ")", "{", "//increment namespace", "...
only call from Kwf_Util_ClearCache_Types_SimpleCache!
[ "only", "call", "from", "Kwf_Util_ClearCache_Types_SimpleCache!" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Cache/Simple.php#L255-L287
koala-framework/koala-framework
KwfBundle/Serializer/SubmitHandlerErrorNormalizer.php
SubmitHandlerErrorNormalizer.normalize
public function normalize($object, $format = null, array $context = array()) { $errors = array(); foreach ($object->getErrors() as $error) { $errors[] = array( 'field' => $error['field'], 'message' => $this->getErrorMessage($error['violation']) ...
php
public function normalize($object, $format = null, array $context = array()) { $errors = array(); foreach ($object->getErrors() as $error) { $errors[] = array( 'field' => $error['field'], 'message' => $this->getErrorMessage($error['violation']) ...
[ "public", "function", "normalize", "(", "$", "object", ",", "$", "format", "=", "null", ",", "array", "$", "context", "=", "array", "(", ")", ")", "{", "$", "errors", "=", "array", "(", ")", ";", "foreach", "(", "$", "object", "->", "getErrors", "(...
{@inheritdoc}
[ "{" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/KwfBundle/Serializer/SubmitHandlerErrorNormalizer.php#L19-L33
koala-framework/koala-framework
KwfBundle/Serializer/SubmitHandlerErrorNormalizer.php
SubmitHandlerErrorNormalizer.supportsNormalization
public function supportsNormalization($data, $format = null) { return $data instanceof SubmitHandler && $data->isSubmitted() && !$data->isValid(); }
php
public function supportsNormalization($data, $format = null) { return $data instanceof SubmitHandler && $data->isSubmitted() && !$data->isValid(); }
[ "public", "function", "supportsNormalization", "(", "$", "data", ",", "$", "format", "=", "null", ")", "{", "return", "$", "data", "instanceof", "SubmitHandler", "&&", "$", "data", "->", "isSubmitted", "(", ")", "&&", "!", "$", "data", "->", "isValid", "...
{@inheritdoc}
[ "{" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/KwfBundle/Serializer/SubmitHandlerErrorNormalizer.php#L38-L41
koala-framework/koala-framework
Kwf/Cache/Backend/Apcu.php
Kwf_Cache_Backend_Apcu.getIds
public function getIds() { $ids = array(); $iterator = new APCUIterator('user', null, APCU_ITER_KEY); foreach ($iterator as $item) { $ids[] = $item['key']; } return $ids; }
php
public function getIds() { $ids = array(); $iterator = new APCUIterator('user', null, APCU_ITER_KEY); foreach ($iterator as $item) { $ids[] = $item['key']; } return $ids; }
[ "public", "function", "getIds", "(", ")", "{", "$", "ids", "=", "array", "(", ")", ";", "$", "iterator", "=", "new", "APCUIterator", "(", "'user'", ",", "null", ",", "APCU_ITER_KEY", ")", ";", "foreach", "(", "$", "iterator", "as", "$", "item", ")", ...
Return an array of stored cache ids @return array array of stored cache ids (string)
[ "Return", "an", "array", "of", "stored", "cache", "ids" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Cache/Backend/Apcu.php#L258-L267
koala-framework/koala-framework
Kwc/Advanced/Team/Member/Data/Vcard/ContentSender.php
Kwc_Advanced_Team_Member_Data_Vcard_ContentSender._getDefaultValues
protected function _getDefaultValues() { $teamComponent = $this->_data->parent->parent->parent; if (Kwc_Abstract::hasSetting($teamComponent->componentClass, 'defaultVcardValues')) { $setting = Kwc_Abstract::getSetting($teamComponent->componentClass, 'defaultVcardValues'); } ...
php
protected function _getDefaultValues() { $teamComponent = $this->_data->parent->parent->parent; if (Kwc_Abstract::hasSetting($teamComponent->componentClass, 'defaultVcardValues')) { $setting = Kwc_Abstract::getSetting($teamComponent->componentClass, 'defaultVcardValues'); } ...
[ "protected", "function", "_getDefaultValues", "(", ")", "{", "$", "teamComponent", "=", "$", "this", "->", "_data", "->", "parent", "->", "parent", "->", "parent", ";", "if", "(", "Kwc_Abstract", "::", "hasSetting", "(", "$", "teamComponent", "->", "componen...
Set default vCard settings here or in Team_Component
[ "Set", "default", "vCard", "settings", "here", "or", "in", "Team_Component" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Advanced/Team/Member/Data/Vcard/ContentSender.php#L18-L30
koala-framework/koala-framework
Kwc/Advanced/Team/Member/Data/Vcard/ContentSender.php
Kwc_Advanced_Team_Member_Data_Vcard_ContentSender._getVcardContent
protected function _getVcardContent($dataRow, $imageData) { $defaults = $this->_getDefaultValues(); require_once Kwf_Config::getValue('externLibraryPath.pearContactVcardBuild').'/Contact/Vcard/Build.php'; $vcard = new Contact_Vcard_Build('2.1'); $vcard->setName(utf8_decode($dataRow...
php
protected function _getVcardContent($dataRow, $imageData) { $defaults = $this->_getDefaultValues(); require_once Kwf_Config::getValue('externLibraryPath.pearContactVcardBuild').'/Contact/Vcard/Build.php'; $vcard = new Contact_Vcard_Build('2.1'); $vcard->setName(utf8_decode($dataRow...
[ "protected", "function", "_getVcardContent", "(", "$", "dataRow", ",", "$", "imageData", ")", "{", "$", "defaults", "=", "$", "this", "->", "_getDefaultValues", "(", ")", ";", "require_once", "Kwf_Config", "::", "getValue", "(", "'externLibraryPath.pearContactVcar...
Gibt vCard Daten zurück. Statisch weil es auch von der Trl_Component aufgerufen wird.
[ "Gibt", "vCard", "Daten", "zurück", ".", "Statisch", "weil", "es", "auch", "von", "der", "Trl_Component", "aufgerufen", "wird", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Advanced/Team/Member/Data/Vcard/ContentSender.php#L58-L163
koala-framework/koala-framework
Kwf/Db/Table/Rowset.php
Kwf_Db_Table_Rowset.seek
public function seek($position) { $position = (int) $position; if ($position < 0 || $position >= $this->_count) { throw new Kwf_Exception("Illegal index $position"); } $this->_pointer = $position; return $this; }
php
public function seek($position) { $position = (int) $position; if ($position < 0 || $position >= $this->_count) { throw new Kwf_Exception("Illegal index $position"); } $this->_pointer = $position; return $this; }
[ "public", "function", "seek", "(", "$", "position", ")", "{", "$", "position", "=", "(", "int", ")", "$", "position", ";", "if", "(", "$", "position", "<", "0", "||", "$", "position", ">=", "$", "this", "->", "_count", ")", "{", "throw", "new", "...
Take the Iterator to position $position Required by interface SeekableIterator. @param int $position the position to seek to @return Kwf_Db_Table_Rowset @throws Kwf_Exception
[ "Take", "the", "Iterator", "to", "position", "$position", "Required", "by", "interface", "SeekableIterator", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Db/Table/Rowset.php#L189-L197
koala-framework/koala-framework
Kwf/Db/Table/Rowset.php
Kwf_Db_Table_Rowset.offsetGet
public function offsetGet($offset) { $offset = (int) $offset; if ($offset < 0 || $offset >= $this->_count) { throw new Kwf_Exception("Illegal index $offset"); } $this->_pointer = $offset; return $this->current(); }
php
public function offsetGet($offset) { $offset = (int) $offset; if ($offset < 0 || $offset >= $this->_count) { throw new Kwf_Exception("Illegal index $offset"); } $this->_pointer = $offset; return $this->current(); }
[ "public", "function", "offsetGet", "(", "$", "offset", ")", "{", "$", "offset", "=", "(", "int", ")", "$", "offset", ";", "if", "(", "$", "offset", "<", "0", "||", "$", "offset", ">=", "$", "this", "->", "_count", ")", "{", "throw", "new", "Kwf_E...
Get the row for the given offset Required by the ArrayAccess implementation @param string $offset @return Kwf_Db_Table_Row_Abstract
[ "Get", "the", "row", "for", "the", "given", "offset", "Required", "by", "the", "ArrayAccess", "implementation" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Db/Table/Rowset.php#L218-L227
koala-framework/koala-framework
Kwf/Db/Table/Rowset.php
Kwf_Db_Table_Rowset.getRow
public function getRow($position, $seek = false) { try { $row = $this->_loadAndReturnRow($position); } catch (Kwf_Exception $e) { throw new Kwf_Exception('No row could be found at position ' . (int) $position, 0, $e); } if ($seek == true) { $this-...
php
public function getRow($position, $seek = false) { try { $row = $this->_loadAndReturnRow($position); } catch (Kwf_Exception $e) { throw new Kwf_Exception('No row could be found at position ' . (int) $position, 0, $e); } if ($seek == true) { $this-...
[ "public", "function", "getRow", "(", "$", "position", ",", "$", "seek", "=", "false", ")", "{", "try", "{", "$", "row", "=", "$", "this", "->", "_loadAndReturnRow", "(", "$", "position", ")", ";", "}", "catch", "(", "Kwf_Exception", "$", "e", ")", ...
Returns a Kwf_Db_Table_Row from a known position into the Iterator @param int $position the position of the row expected @param bool $seek wether or not seek the iterator to that position after @return Kwf_Db_Table_Row @throws Kwf_Exception
[ "Returns", "a", "Kwf_Db_Table_Row", "from", "a", "known", "position", "into", "the", "Iterator" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Db/Table/Rowset.php#L258-L271
koala-framework/koala-framework
Kwf/Form/Field/GoogleMapsField.php
Kwf_Form_Field_GoogleMapsField.setCoordinateFieldnames
public function setCoordinateFieldnames($latitudeFieldname = 'latitude', $longitudeFieldname = 'longitude') { $this->_latitudeFieldname = $latitudeFieldname; $this->_longitudeFieldname = $longitudeFieldname; return $this; }
php
public function setCoordinateFieldnames($latitudeFieldname = 'latitude', $longitudeFieldname = 'longitude') { $this->_latitudeFieldname = $latitudeFieldname; $this->_longitudeFieldname = $longitudeFieldname; return $this; }
[ "public", "function", "setCoordinateFieldnames", "(", "$", "latitudeFieldname", "=", "'latitude'", ",", "$", "longitudeFieldname", "=", "'longitude'", ")", "{", "$", "this", "->", "_latitudeFieldname", "=", "$", "latitudeFieldname", ";", "$", "this", "->", "_longi...
if called, coordinates will be saved into two seperate fields (necessary if you want to use Kwc_Directories_List_ViewMap_Component)
[ "if", "called", "coordinates", "will", "be", "saved", "into", "two", "seperate", "fields", "(", "necessary", "if", "you", "want", "to", "use", "Kwc_Directories_List_ViewMap_Component", ")" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form/Field/GoogleMapsField.php#L17-L22
koala-framework/koala-framework
Kwf/Util/Gearman/Client.php
Kwf_Util_Gearman_Client.doKwf
public function doKwf($function_name, $workload, $unique=null) { $function_name = $this->_processFunctionName($function_name); if (method_exists($this, 'doNormal')) { return $this->doNormal($function_name, $workload, $unique); } else { //older versions of gearman exte...
php
public function doKwf($function_name, $workload, $unique=null) { $function_name = $this->_processFunctionName($function_name); if (method_exists($this, 'doNormal')) { return $this->doNormal($function_name, $workload, $unique); } else { //older versions of gearman exte...
[ "public", "function", "doKwf", "(", "$", "function_name", ",", "$", "workload", ",", "$", "unique", "=", "null", ")", "{", "$", "function_name", "=", "$", "this", "->", "_processFunctionName", "(", "$", "function_name", ")", ";", "if", "(", "method_exists"...
ACHTUNG immer doKwf statt do verwenden! (do kann leider nicht überschrieben werden)
[ "ACHTUNG", "immer", "doKwf", "statt", "do", "verwenden!", "(", "do", "kann", "leider", "nicht", "überschrieben", "werden", ")" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Gearman/Client.php#L90-L99
koala-framework/koala-framework
Kwf/Util/SessionHandler.php
Kwf_Util_SessionHandler.open
public function open($savePath, $sessionName) { if (!isset($this->_lifeTime)) $this->_lifeTime = intval(ini_get("session.gc_maxlifetime")); if (!isset($this->_refreshTime)) $this->_refreshTime = ceil($this->_lifeTime / 3); $this->_initSessionData = null; $this->_memcache = new Memc...
php
public function open($savePath, $sessionName) { if (!isset($this->_lifeTime)) $this->_lifeTime = intval(ini_get("session.gc_maxlifetime")); if (!isset($this->_refreshTime)) $this->_refreshTime = ceil($this->_lifeTime / 3); $this->_initSessionData = null; $this->_memcache = new Memc...
[ "public", "function", "open", "(", "$", "savePath", ",", "$", "sessionName", ")", "{", "if", "(", "!", "isset", "(", "$", "this", "->", "_lifeTime", ")", ")", "$", "this", "->", "_lifeTime", "=", "intval", "(", "ini_get", "(", "\"session.gc_maxlifetime\"...
opening of the session - mandatory arguments won't be needed @param string $savePath @param string $sessionName @return bool
[ "opening", "of", "the", "session", "-", "mandatory", "arguments", "won", "t", "be", "needed" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/SessionHandler.php#L57-L86
koala-framework/koala-framework
Kwf/Util/SessionHandler.php
Kwf_Util_SessionHandler.read
function read($sessionId) { $this->_initSessionData = ''; $d = $this->_memcache->get(Kwf_Cache_Simple::getUniquePrefix().'sess-'.$sessionId); if ($d === false) { Kwf_Benchmark::count('sessionhdl', 'load from db'); //the record could not be found in the Memcache, loadi...
php
function read($sessionId) { $this->_initSessionData = ''; $d = $this->_memcache->get(Kwf_Cache_Simple::getUniquePrefix().'sess-'.$sessionId); if ($d === false) { Kwf_Benchmark::count('sessionhdl', 'load from db'); //the record could not be found in the Memcache, loadi...
[ "function", "read", "(", "$", "sessionId", ")", "{", "$", "this", "->", "_initSessionData", "=", "''", ";", "$", "d", "=", "$", "this", "->", "_memcache", "->", "get", "(", "Kwf_Cache_Simple", "::", "getUniquePrefix", "(", ")", ".", "'sess-'", ".", "$"...
reading of the session data if the data couldn't be found in the Memcache, we try to load it from the DB we have to update the time of data expiration in the db using _updateDbExpiration() the life time in Memcache is updated automatically by write operation @param string $sessionId @return string
[ "reading", "of", "the", "session", "data", "if", "the", "data", "couldn", "t", "be", "found", "in", "the", "Memcache", "we", "try", "to", "load", "it", "from", "the", "DB", "we", "have", "to", "update", "the", "time", "of", "data", "expiration", "in", ...
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/SessionHandler.php#L108-L138
koala-framework/koala-framework
Kwf/Util/SessionHandler.php
Kwf_Util_SessionHandler._updateDbExpiration
private function _updateDbExpiration($sessionId) { Kwf_Benchmark::count('sessionhdl', '_updateDbExpiration'); $expiration = $this->_lifeTime + time(); Kwf_Registry::get('db')->query("UPDATE kwf_sessions SET expiration=? WHERE sessionId=?", array($expiration, $sessionId)); //we store...
php
private function _updateDbExpiration($sessionId) { Kwf_Benchmark::count('sessionhdl', '_updateDbExpiration'); $expiration = $this->_lifeTime + time(); Kwf_Registry::get('db')->query("UPDATE kwf_sessions SET expiration=? WHERE sessionId=?", array($expiration, $sessionId)); //we store...
[ "private", "function", "_updateDbExpiration", "(", "$", "sessionId", ")", "{", "Kwf_Benchmark", "::", "count", "(", "'sessionhdl'", ",", "'_updateDbExpiration'", ")", ";", "$", "expiration", "=", "$", "this", "->", "_lifeTime", "+", "time", "(", ")", ";", "K...
update of the expiration time of the db record @param string $sessionId
[ "update", "of", "the", "expiration", "time", "of", "the", "db", "record" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/SessionHandler.php#L145-L153
koala-framework/koala-framework
Kwf/Util/SessionHandler.php
Kwf_Util_SessionHandler.write
public function write($sessionId, $data) { $t = microtime(true); $expiration = $this->_lifeTime + time(); //we store time of the db record expiration in the Memcache if ($this->_initSessionData !== $data) { Kwf_Registry::get('db')->query("REPLACE INTO kwf_sessions (sess...
php
public function write($sessionId, $data) { $t = microtime(true); $expiration = $this->_lifeTime + time(); //we store time of the db record expiration in the Memcache if ($this->_initSessionData !== $data) { Kwf_Registry::get('db')->query("REPLACE INTO kwf_sessions (sess...
[ "public", "function", "write", "(", "$", "sessionId", ",", "$", "data", ")", "{", "$", "t", "=", "microtime", "(", "true", ")", ";", "$", "expiration", "=", "$", "this", "->", "_lifeTime", "+", "time", "(", ")", ";", "//we store time of the db record exp...
cache write - this is called when the script is about to finish, or when session_write_close() is called data are written only when something has changed @param string $sessionId @param string $data @return bool
[ "cache", "write", "-", "this", "is", "called", "when", "the", "script", "is", "about", "to", "finish", "or", "when", "session_write_close", "()", "is", "called", "data", "are", "written", "only", "when", "something", "has", "changed" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/SessionHandler.php#L177-L189
koala-framework/koala-framework
Kwf/Util/SessionHandler.php
Kwf_Util_SessionHandler.destroy
public function destroy($sessionId) { $this->_memcache->delete(Kwf_Cache_Simple::getUniquePrefix().'sess-'.$sessionId); $this->_memcache->delete(Kwf_Cache_Simple::getUniquePrefix().'sess-db-'.$sessionId); Kwf_Registry::get('db')->query("DELETE FROM kwf_sessions WHERE sessionId=?", $sessionId...
php
public function destroy($sessionId) { $this->_memcache->delete(Kwf_Cache_Simple::getUniquePrefix().'sess-'.$sessionId); $this->_memcache->delete(Kwf_Cache_Simple::getUniquePrefix().'sess-db-'.$sessionId); Kwf_Registry::get('db')->query("DELETE FROM kwf_sessions WHERE sessionId=?", $sessionId...
[ "public", "function", "destroy", "(", "$", "sessionId", ")", "{", "$", "this", "->", "_memcache", "->", "delete", "(", "Kwf_Cache_Simple", "::", "getUniquePrefix", "(", ")", ".", "'sess-'", ".", "$", "sessionId", ")", ";", "$", "this", "->", "_memcache", ...
destroy of the session @param string $sessionId @return bool
[ "destroy", "of", "the", "session" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/SessionHandler.php#L197-L203
koala-framework/koala-framework
Kwf/Util/SessionHandler.php
Kwf_Util_SessionHandler.gc
public function gc($maxlifetime) { foreach (Kwf_Registry::get('db')->query("SELECT sessionId FROM kwf_sessions WHERE expiration < ?", time())->fetchAll() as $r) { $this->destroy($r['sessionId']); } return true; }
php
public function gc($maxlifetime) { foreach (Kwf_Registry::get('db')->query("SELECT sessionId FROM kwf_sessions WHERE expiration < ?", time())->fetchAll() as $r) { $this->destroy($r['sessionId']); } return true; }
[ "public", "function", "gc", "(", "$", "maxlifetime", ")", "{", "foreach", "(", "Kwf_Registry", "::", "get", "(", "'db'", ")", "->", "query", "(", "\"SELECT sessionId FROM kwf_sessions WHERE expiration < ?\"", ",", "time", "(", ")", ")", "->", "fetchAll", "(", ...
called by the garbage collector @param int $maxlifetime @return bool
[ "called", "by", "the", "garbage", "collector" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/SessionHandler.php#L211-L217
koala-framework/koala-framework
Kwf/Component/Abstract/Events.php
Kwf_Component_Abstract_Events._getCreatingClasses
protected function _getCreatingClasses($createdClass, $createClass = null) { $ret = array(); foreach (Kwc_Abstract::getComponentClasses() as $c) { if (!$createClass || in_array($createClass, Kwc_Abstract::getParentClasses($c))) { if (Kwc_Abstract::getChildComponentClasses...
php
protected function _getCreatingClasses($createdClass, $createClass = null) { $ret = array(); foreach (Kwc_Abstract::getComponentClasses() as $c) { if (!$createClass || in_array($createClass, Kwc_Abstract::getParentClasses($c))) { if (Kwc_Abstract::getChildComponentClasses...
[ "protected", "function", "_getCreatingClasses", "(", "$", "createdClass", ",", "$", "createClass", "=", "null", ")", "{", "$", "ret", "=", "array", "(", ")", ";", "foreach", "(", "Kwc_Abstract", "::", "getComponentClasses", "(", ")", "as", "$", "c", ")", ...
Returns all component classes that can create $createdClass. Optionally filtering instances of $createClass.
[ "Returns", "all", "component", "classes", "that", "can", "create", "$createdClass", ".", "Optionally", "filtering", "instances", "of", "$createClass", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Component/Abstract/Events.php#L14-L25
koala-framework/koala-framework
Kwf/Form/Container/Cards.php
Kwf_Form_Container_Cards.setCombobox
public function setCombobox($box) { $this->_combobox = $box; $this->_combobox->setFormName($this->fields->getFormName()); return $this; }
php
public function setCombobox($box) { $this->_combobox = $box; $this->_combobox->setFormName($this->fields->getFormName()); return $this; }
[ "public", "function", "setCombobox", "(", "$", "box", ")", "{", "$", "this", "->", "_combobox", "=", "$", "box", ";", "$", "this", "->", "_combobox", "->", "setFormName", "(", "$", "this", "->", "fields", "->", "getFormName", "(", ")", ")", ";", "ret...
um zB die combobox durch radios zu ersetzen
[ "um", "zB", "die", "combobox", "durch", "radios", "zu", "ersetzen" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form/Container/Cards.php#L62-L67
koala-framework/koala-framework
Kwf/Form/Container/Cards.php
Kwf_Form_Container_Cards._processChildren
protected function _processChildren($method, $childField, $row, $postData) { if ($method == 'load') return true; if ($childField === $this->_combobox) return true; //wenn card nicht gewählt, nicht aufrufen $value = isset($postData[$this->_combobox->getFieldName()]) ? $postData[$this...
php
protected function _processChildren($method, $childField, $row, $postData) { if ($method == 'load') return true; if ($childField === $this->_combobox) return true; //wenn card nicht gewählt, nicht aufrufen $value = isset($postData[$this->_combobox->getFieldName()]) ? $postData[$this...
[ "protected", "function", "_processChildren", "(", "$", "method", ",", "$", "childField", ",", "$", "row", ",", "$", "postData", ")", "{", "if", "(", "$", "method", "==", "'load'", ")", "return", "true", ";", "if", "(", "$", "childField", "===", "$", ...
verhindert aufrufen von validate/prepareSave/save etc fuer kinder wenn card nicht ausgewählt
[ "verhindert", "aufrufen", "von", "validate", "/", "prepareSave", "/", "save", "etc", "fuer", "kinder", "wenn", "card", "nicht", "ausgewählt" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form/Container/Cards.php#L121-L129
koala-framework/koala-framework
Kwc/Form/Field/DateField/Component.php
Kwc_Form_Field_DateField_Component.getSubmitMessage
public function getSubmitMessage($row) { $message = ''; if ($this->getFormField()->getFieldLabel()) { $message .= $this->getFormField()->getFieldLabel().': '; } $t = strtotime($row->{$this->getFormField()->getName()}); $message .= date($this->getData()->trlKwf('Y-...
php
public function getSubmitMessage($row) { $message = ''; if ($this->getFormField()->getFieldLabel()) { $message .= $this->getFormField()->getFieldLabel().': '; } $t = strtotime($row->{$this->getFormField()->getName()}); $message .= date($this->getData()->trlKwf('Y-...
[ "public", "function", "getSubmitMessage", "(", "$", "row", ")", "{", "$", "message", "=", "''", ";", "if", "(", "$", "this", "->", "getFormField", "(", ")", "->", "getFieldLabel", "(", ")", ")", "{", "$", "message", ".=", "$", "this", "->", "getFormF...
This function is used to return a human-readable string for this field depending on submited data. @param Kwc_Form_Dynamic_Form_MailRow $row @return string
[ "This", "function", "is", "used", "to", "return", "a", "human", "-", "readable", "string", "for", "this", "field", "depending", "on", "submited", "data", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Form/Field/DateField/Component.php#L33-L42
koala-framework/koala-framework
Kwf/Srpc/Handler/Model.php
Kwf_Srpc_Handler_Model.rowSave
public function rowSave($id, $data) { if (!$data || !is_array($data)) return false; if (is_null($id)) { $row = $this->getModel()->createRow(); } else { $row = $this->getModel()->getRow($id); } if (!$row) return false; foreach ($data as $col ...
php
public function rowSave($id, $data) { if (!$data || !is_array($data)) return false; if (is_null($id)) { $row = $this->getModel()->createRow(); } else { $row = $this->getModel()->getRow($id); } if (!$row) return false; foreach ($data as $col ...
[ "public", "function", "rowSave", "(", "$", "id", ",", "$", "data", ")", "{", "if", "(", "!", "$", "data", "||", "!", "is_array", "(", "$", "data", ")", ")", "return", "false", ";", "if", "(", "is_null", "(", "$", "id", ")", ")", "{", "$", "ro...
TODO: stattdessen insertRow und updateRow verwenden
[ "TODO", ":", "stattdessen", "insertRow", "und", "updateRow", "verwenden" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Srpc/Handler/Model.php#L91-L117
koala-framework/koala-framework
Kwf/Component/View/Helper/IncludeTemplate.php
Kwf_Component_View_Helper_IncludeTemplate.includeTemplate
public function includeTemplate($name = null, $module = null, $model = null) { $name = Kwc_Abstract::getTemplateFile($this->view->data->componentClass, $name); if (!$module) { $module = $this->view; } return $this->partial($name, $module, $model); }
php
public function includeTemplate($name = null, $module = null, $model = null) { $name = Kwc_Abstract::getTemplateFile($this->view->data->componentClass, $name); if (!$module) { $module = $this->view; } return $this->partial($name, $module, $model); }
[ "public", "function", "includeTemplate", "(", "$", "name", "=", "null", ",", "$", "module", "=", "null", ",", "$", "model", "=", "null", ")", "{", "$", "name", "=", "Kwc_Abstract", "::", "getTemplateFile", "(", "$", "this", "->", "view", "->", "data", ...
Includes Template for current Component @param string $name Template Name without path and .tpl (e.g. "Mail.html") @param string $module @param string $model
[ "Includes", "Template", "for", "current", "Component" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Component/View/Helper/IncludeTemplate.php#L11-L16
koala-framework/koala-framework
Kwc/Basic/LinkTag/Phone/Admin.php
Kwc_Basic_LinkTag_Phone_Admin.componentToString
public function componentToString(Kwf_Component_Data $data) { $ret = parent::componentToString($data); $punycode = new Kwf_Util_Punycode(); return $punycode->decode($ret); }
php
public function componentToString(Kwf_Component_Data $data) { $ret = parent::componentToString($data); $punycode = new Kwf_Util_Punycode(); return $punycode->decode($ret); }
[ "public", "function", "componentToString", "(", "Kwf_Component_Data", "$", "data", ")", "{", "$", "ret", "=", "parent", "::", "componentToString", "(", "$", "data", ")", ";", "$", "punycode", "=", "new", "Kwf_Util_Punycode", "(", ")", ";", "return", "$", "...
wird bei linklist verwendet, damit url richtig ausgegeben wird
[ "wird", "bei", "linklist", "verwendet", "damit", "url", "richtig", "ausgegeben", "wird" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Basic/LinkTag/Phone/Admin.php#L5-L10
koala-framework/koala-framework
Kwf/Assets/Package/Default.php
Kwf_Assets_Package_Default.getInstance
public static function getInstance($dependencyName) { if (!isset(self::$_instances[$dependencyName])) { self::$_instances[$dependencyName] = new self($dependencyName); } return self::$_instances[$dependencyName]; }
php
public static function getInstance($dependencyName) { if (!isset(self::$_instances[$dependencyName])) { self::$_instances[$dependencyName] = new self($dependencyName); } return self::$_instances[$dependencyName]; }
[ "public", "static", "function", "getInstance", "(", "$", "dependencyName", ")", "{", "if", "(", "!", "isset", "(", "self", "::", "$", "_instances", "[", "$", "dependencyName", "]", ")", ")", "{", "self", "::", "$", "_instances", "[", "$", "dependencyName...
Returns a Default Asset Package (using Kwf_Assets_ProviderList_Default) Very fast, as all expensive operations are done lazily @return self
[ "Returns", "a", "Default", "Asset", "Package", "(", "using", "Kwf_Assets_ProviderList_Default", ")" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Assets/Package/Default.php#L13-L19
koala-framework/koala-framework
Kwf/Form/Field/Abstract.php
Kwf_Form_Field_Abstract.setProperty
public function setProperty($name, $value) { if (is_null($value)) { unset($this->_properties[$name]); } else { $this->_properties[$name] = $value; } return $this; }
php
public function setProperty($name, $value) { if (is_null($value)) { unset($this->_properties[$name]); } else { $this->_properties[$name] = $value; } return $this; }
[ "public", "function", "setProperty", "(", "$", "name", ",", "$", "value", ")", "{", "if", "(", "is_null", "(", "$", "value", ")", ")", "{", "unset", "(", "$", "this", "->", "_properties", "[", "$", "name", "]", ")", ";", "}", "else", "{", "$", ...
Set any property supported by ExtJS for this field Alternatively use setFooBar() to set property fooBar
[ "Set", "any", "property", "supported", "by", "ExtJS", "for", "this", "field" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form/Field/Abstract.php#L97-L105
koala-framework/koala-framework
Kwf/Form/Field/Abstract.php
Kwf_Form_Field_Abstract.getFieldName
public function getFieldName() { $ret = $this->getName(); if ($this->getNamePrefix()) { $ret = $this->getNamePrefix() . '_' . $ret; } return $ret; }
php
public function getFieldName() { $ret = $this->getName(); if ($this->getNamePrefix()) { $ret = $this->getNamePrefix() . '_' . $ret; } return $ret; }
[ "public", "function", "getFieldName", "(", ")", "{", "$", "ret", "=", "$", "this", "->", "getName", "(", ")", ";", "if", "(", "$", "this", "->", "getNamePrefix", "(", ")", ")", "{", "$", "ret", "=", "$", "this", "->", "getNamePrefix", "(", ")", "...
returns the fully qualified field name, different to getName when using form in form @return string
[ "returns", "the", "fully", "qualified", "field", "name", "different", "to", "getName", "when", "using", "form", "in", "form" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form/Field/Abstract.php#L251-L258
koala-framework/koala-framework
Kwf/Util/Model/Feed/Feeds.php
Kwf_Util_Model_Feed_Feeds.findFeeds
public function findFeeds($uri) { $client = new Zend_Http_Client($uri); $response = $client->request(); if ($response->getStatus() != 200) { throw new Kwf_Exception("invalid status response"); } $contents = $response->getBody(); // Parse the contents for a...
php
public function findFeeds($uri) { $client = new Zend_Http_Client($uri); $response = $client->request(); if ($response->getStatus() != 200) { throw new Kwf_Exception("invalid status response"); } $contents = $response->getBody(); // Parse the contents for a...
[ "public", "function", "findFeeds", "(", "$", "uri", ")", "{", "$", "client", "=", "new", "Zend_Http_Client", "(", "$", "uri", ")", ";", "$", "response", "=", "$", "client", "->", "request", "(", ")", ";", "if", "(", "$", "response", "->", "getStatus"...
und so umgebaut dass kein Http_Client verwendet wird
[ "und", "so", "umgebaut", "dass", "kein", "Http_Client", "verwendet", "wird" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Model/Feed/Feeds.php#L60-L152
koala-framework/koala-framework
Kwf/Util/Model/Feed/Entries.php
Kwf_Util_Model_Feed_Entries._getFeedEntries
public function _getFeedEntries($parentRow, $xml, $select = array()) { $select = $this->select($select); $pId = $parentRow->getInternalId(); $this->_data[$pId] = array(); if ($parentRow->format == Kwf_Util_Model_Feed_Row_Feed::FORMAT_RSS) { if (in_array('http://purl.org...
php
public function _getFeedEntries($parentRow, $xml, $select = array()) { $select = $this->select($select); $pId = $parentRow->getInternalId(); $this->_data[$pId] = array(); if ($parentRow->format == Kwf_Util_Model_Feed_Row_Feed::FORMAT_RSS) { if (in_array('http://purl.org...
[ "public", "function", "_getFeedEntries", "(", "$", "parentRow", ",", "$", "xml", ",", "$", "select", "=", "array", "(", ")", ")", "{", "$", "select", "=", "$", "this", "->", "select", "(", "$", "select", ")", ";", "$", "pId", "=", "$", "parentRow",...
"darf" nur von Kwf_Util_Model_Feed_Row_Feed aufgerufen werden!
[ "darf", "nur", "von", "Kwf_Util_Model_Feed_Row_Feed", "aufgerufen", "werden!" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Model/Feed/Entries.php#L37-L81
koala-framework/koala-framework
Kwf/Form/Field/Radio.php
Kwf_Form_Field_Radio.getMetaData
public function getMetaData($model) { $ret = parent::getMetaData($model); unset($ret['store']); unset($ret['editable']); unset($ret['triggerAction']); if (isset($ret['outputType']) && $ret['outputType'] == 'vertical') { unset($ret['outputType']); if (!...
php
public function getMetaData($model) { $ret = parent::getMetaData($model); unset($ret['store']); unset($ret['editable']); unset($ret['triggerAction']); if (isset($ret['outputType']) && $ret['outputType'] == 'vertical') { unset($ret['outputType']); if (!...
[ "public", "function", "getMetaData", "(", "$", "model", ")", "{", "$", "ret", "=", "parent", "::", "getMetaData", "(", "$", "model", ")", ";", "unset", "(", "$", "ret", "[", "'store'", "]", ")", ";", "unset", "(", "$", "ret", "[", "'editable'", "]"...
setColumns()
[ "setColumns", "()" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form/Field/Radio.php#L22-L52
koala-framework/koala-framework
Kwf/Collection.php
Kwf_Collection.offsetExists
public function offsetExists($offset) { foreach ($this->_array as $v) { if ($ret = $v->getByName($offset)) { return true; } } return false; }
php
public function offsetExists($offset) { foreach ($this->_array as $v) { if ($ret = $v->getByName($offset)) { return true; } } return false; }
[ "public", "function", "offsetExists", "(", "$", "offset", ")", "{", "foreach", "(", "$", "this", "->", "_array", "as", "$", "v", ")", "{", "if", "(", "$", "ret", "=", "$", "v", "->", "getByName", "(", "$", "offset", ")", ")", "{", "return", "true...
ArrayAccess
[ "ArrayAccess" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Collection.php#L31-L39
koala-framework/koala-framework
Kwf/Collection.php
Kwf_Collection.offsetUnset
public function offsetUnset($offset) { foreach ($this->_array as $k=>$v) { if ($ret = $v->getByName($offset)) { unset($this->_array[$k]); $this->_array = array_values($this->_array); return; } } throw new Kwf_Exception("...
php
public function offsetUnset($offset) { foreach ($this->_array as $k=>$v) { if ($ret = $v->getByName($offset)) { unset($this->_array[$k]); $this->_array = array_values($this->_array); return; } } throw new Kwf_Exception("...
[ "public", "function", "offsetUnset", "(", "$", "offset", ")", "{", "foreach", "(", "$", "this", "->", "_array", "as", "$", "k", "=>", "$", "v", ")", "{", "if", "(", "$", "ret", "=", "$", "v", "->", "getByName", "(", "$", "offset", ")", ")", "{"...
ArrayAccess
[ "ArrayAccess" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Collection.php#L75-L85
koala-framework/koala-framework
Kwc/Basic/ImageEnlarge/EnlargeTag/Trl/Component.php
Kwc_Basic_ImageEnlarge_EnlargeTag_Trl_Component.getImageDimensions
public function getImageDimensions() { $dimension = $this->getData()->chained->getComponent()->_getSetting('dimension'); if ($this->getData()->chained->getComponent()->getRow()->use_crop) { $parentDimensions = $this->_getImageEnlargeComponent()->getImageDimensions(); $dimensi...
php
public function getImageDimensions() { $dimension = $this->getData()->chained->getComponent()->_getSetting('dimension'); if ($this->getData()->chained->getComponent()->getRow()->use_crop) { $parentDimensions = $this->_getImageEnlargeComponent()->getImageDimensions(); $dimensi...
[ "public", "function", "getImageDimensions", "(", ")", "{", "$", "dimension", "=", "$", "this", "->", "getData", "(", ")", "->", "chained", "->", "getComponent", "(", ")", "->", "_getSetting", "(", "'dimension'", ")", ";", "if", "(", "$", "this", "->", ...
This function is called by Kwc_Basic_ImageEnlarge_EnlargeTag_ImagePage_Trl_Component
[ "This", "function", "is", "called", "by", "Kwc_Basic_ImageEnlarge_EnlargeTag_ImagePage_Trl_Component" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Basic/ImageEnlarge/EnlargeTag/Trl/Component.php#L49-L58
koala-framework/koala-framework
Kwc/Basic/ImageEnlarge/EnlargeTag/Trl/Component.php
Kwc_Basic_ImageEnlarge_EnlargeTag_Trl_Component.getImageUrl
public function getImageUrl() { $dimensions = $this->getImageDimensions(); $baseUrl = $this->getBaseImageUrl(); if ($baseUrl) { return str_replace('{width}', $dimensions['width'], $this->getBaseImageUrl()); } return null; }
php
public function getImageUrl() { $dimensions = $this->getImageDimensions(); $baseUrl = $this->getBaseImageUrl(); if ($baseUrl) { return str_replace('{width}', $dimensions['width'], $this->getBaseImageUrl()); } return null; }
[ "public", "function", "getImageUrl", "(", ")", "{", "$", "dimensions", "=", "$", "this", "->", "getImageDimensions", "(", ")", ";", "$", "baseUrl", "=", "$", "this", "->", "getBaseImageUrl", "(", ")", ";", "if", "(", "$", "baseUrl", ")", "{", "return",...
This function is called by Kwc_Basic_ImageEnlarge_EnlargeTag_ImagePage_Trl_Component
[ "This", "function", "is", "called", "by", "Kwc_Basic_ImageEnlarge_EnlargeTag_ImagePage_Trl_Component" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Basic/ImageEnlarge/EnlargeTag/Trl/Component.php#L73-L81
koala-framework/koala-framework
Kwf/Controller/Action/Cli/Web/ComponentPagesMetaController.php
Kwf_Controller_Action_Cli_Web_ComponentPagesMetaController.rebuildWorkerAction
public function rebuildWorkerAction() { set_time_limit(0); Kwf_Util_MemoryLimit::set(512); $queueFile = 'temp/pagemetaRebuildQueue'; $statsFile = 'temp/pagemetaRebuildStats'; $stats = unserialize(file_get_contents($statsFile)); while (true) { //child pro...
php
public function rebuildWorkerAction() { set_time_limit(0); Kwf_Util_MemoryLimit::set(512); $queueFile = 'temp/pagemetaRebuildQueue'; $statsFile = 'temp/pagemetaRebuildStats'; $stats = unserialize(file_get_contents($statsFile)); while (true) { //child pro...
[ "public", "function", "rebuildWorkerAction", "(", ")", "{", "set_time_limit", "(", "0", ")", ";", "Kwf_Util_MemoryLimit", "::", "set", "(", "512", ")", ";", "$", "queueFile", "=", "'temp/pagemetaRebuildQueue'", ";", "$", "statsFile", "=", "'temp/pagemetaRebuildSta...
internal
[ "internal" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Controller/Action/Cli/Web/ComponentPagesMetaController.php#L5-L95
koala-framework/koala-framework
Kwc/Abstract/Image/Trl/Component.php
Kwc_Abstract_Image_Trl_Component.getMediaOutput
public static function getMediaOutput($id, $type, $className) { $c = Kwf_Component_Data_Root::getInstance()->getComponentById($id, array('ignoreVisible' => true)); return call_user_func( array(get_class($c->chained->getComponent()), 'getMediaOutput'), $c->chained->componentId...
php
public static function getMediaOutput($id, $type, $className) { $c = Kwf_Component_Data_Root::getInstance()->getComponentById($id, array('ignoreVisible' => true)); return call_user_func( array(get_class($c->chained->getComponent()), 'getMediaOutput'), $c->chained->componentId...
[ "public", "static", "function", "getMediaOutput", "(", "$", "id", ",", "$", "type", ",", "$", "className", ")", "{", "$", "c", "=", "Kwf_Component_Data_Root", "::", "getInstance", "(", ")", "->", "getComponentById", "(", "$", "id", ",", "array", "(", "'i...
if own_image getMediaOutput of image child component is used
[ "if", "own_image", "getMediaOutput", "of", "image", "child", "component", "is", "used" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract/Image/Trl/Component.php#L140-L147
koala-framework/koala-framework
Kwf/Util/Update/Runner.php
Kwf_Util_Update_Runner.checkUpdatesSettings
public function checkUpdatesSettings() { $ret = true; foreach ($this->_updates as $update) { $e = false; try { $update->checkSettings(); } catch (Exception $e) { throw $e; //no special handling for now, maybe something better should...
php
public function checkUpdatesSettings() { $ret = true; foreach ($this->_updates as $update) { $e = false; try { $update->checkSettings(); } catch (Exception $e) { throw $e; //no special handling for now, maybe something better should...
[ "public", "function", "checkUpdatesSettings", "(", ")", "{", "$", "ret", "=", "true", ";", "foreach", "(", "$", "this", "->", "_updates", "as", "$", "update", ")", "{", "$", "e", "=", "false", ";", "try", "{", "$", "update", "->", "checkSettings", "(...
Executes checkSettings method for all update scripts which should check if everything is set up correctly to execute the update script
[ "Executes", "checkSettings", "method", "for", "all", "update", "scripts", "which", "should", "check", "if", "everything", "is", "set", "up", "correctly", "to", "execute", "the", "update", "script" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Update/Runner.php#L88-L101
koala-framework/koala-framework
Kwf/Events/Dispatcher.php
Kwf_Events_Dispatcher.addListeners
public static function addListeners($objOrClass) { self::getAllListeners(); //fill cache if ($objOrClass instanceof Kwf_Events_Subscriber) { self::_addListenersFromSubscribers(self::$_listeners, array($objOrClass)); } else if (is_string($objOrClass)) { if (is_instance...
php
public static function addListeners($objOrClass) { self::getAllListeners(); //fill cache if ($objOrClass instanceof Kwf_Events_Subscriber) { self::_addListenersFromSubscribers(self::$_listeners, array($objOrClass)); } else if (is_string($objOrClass)) { if (is_instance...
[ "public", "static", "function", "addListeners", "(", "$", "objOrClass", ")", "{", "self", "::", "getAllListeners", "(", ")", ";", "//fill cache", "if", "(", "$", "objOrClass", "instanceof", "Kwf_Events_Subscriber", ")", "{", "self", "::", "_addListenersFromSubscri...
Add an additional event subscriber, can be used by unit tests obj
[ "Add", "an", "additional", "event", "subscriber", "can", "be", "used", "by", "unit", "tests" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Events/Dispatcher.php#L34-L50
koala-framework/koala-framework
Kwc/Directories/List/View/Component.php
Kwc_Directories_List_View_Component._getSearchSelect
protected function _getSearchSelect($ret, $searchRow) { $values = $searchRow->toArray(); unset($values['id']); $ret->where(new Kwf_Model_Select_Expr_SearchLike($values, $this->_getSetting('searchQueryFields'))); return $ret; }
php
protected function _getSearchSelect($ret, $searchRow) { $values = $searchRow->toArray(); unset($values['id']); $ret->where(new Kwf_Model_Select_Expr_SearchLike($values, $this->_getSetting('searchQueryFields'))); return $ret; }
[ "protected", "function", "_getSearchSelect", "(", "$", "ret", ",", "$", "searchRow", ")", "{", "$", "values", "=", "$", "searchRow", "->", "toArray", "(", ")", ";", "unset", "(", "$", "values", "[", "'id'", "]", ")", ";", "$", "ret", "->", "where", ...
rewrite this function if you want a specific search form select
[ "rewrite", "this", "function", "if", "you", "want", "a", "specific", "search", "form", "select" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Directories/List/View/Component.php#L85-L91
koala-framework/koala-framework
Kwc/Directories/List/View/Component.php
Kwc_Directories_List_View_Component.getItemIds
public final function getItemIds($count = null, $offset = null) { $select = $this->_getSelect(); if (!$select) return array(); if ($count) { if ($select->hasPart(Kwf_Model_Select::LIMIT_COUNT)) { $ex = new Kwf_Exception("Can't use getItemIds with limit in select ...
php
public final function getItemIds($count = null, $offset = null) { $select = $this->_getSelect(); if (!$select) return array(); if ($count) { if ($select->hasPart(Kwf_Model_Select::LIMIT_COUNT)) { $ex = new Kwf_Exception("Can't use getItemIds with limit in select ...
[ "public", "final", "function", "getItemIds", "(", "$", "count", "=", "null", ",", "$", "offset", "=", "null", ")", "{", "$", "select", "=", "$", "this", "->", "_getSelect", "(", ")", ";", "if", "(", "!", "$", "select", ")", "return", "array", "(", ...
override in List if needed
[ "override", "in", "List", "if", "needed" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Directories/List/View/Component.php#L99-L113
koala-framework/koala-framework
Kwc/Directories/List/View/Component.php
Kwc_Directories_List_View_Component._getItems
protected final function _getItems($select = null) { if (!$select) $select = $this->_getSelect(); if (!$select) return array(); return $this->getData()->parent->getComponent()->getItems($select); }
php
protected final function _getItems($select = null) { if (!$select) $select = $this->_getSelect(); if (!$select) return array(); return $this->getData()->parent->getComponent()->getItems($select); }
[ "protected", "final", "function", "_getItems", "(", "$", "select", "=", "null", ")", "{", "if", "(", "!", "$", "select", ")", "$", "select", "=", "$", "this", "->", "_getSelect", "(", ")", ";", "if", "(", "!", "$", "select", ")", "return", "array",...
override in List if needed
[ "override", "in", "List", "if", "needed" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Directories/List/View/Component.php#L116-L122
koala-framework/koala-framework
Kwc/Directories/List/View/Component.php
Kwc_Directories_List_View_Component.getPartialParams
public function getPartialParams() { $select = $this->_getSelect(); $ret = array(); $ret['componentId'] = $this->getData()->componentId; $ret['count'] = $this->getPagingCount($select); $ret['disableCache'] = false; $ret['cacheLifetime'] = $this->getViewCacheLifetime()...
php
public function getPartialParams() { $select = $this->_getSelect(); $ret = array(); $ret['componentId'] = $this->getData()->componentId; $ret['count'] = $this->getPagingCount($select); $ret['disableCache'] = false; $ret['cacheLifetime'] = $this->getViewCacheLifetime()...
[ "public", "function", "getPartialParams", "(", ")", "{", "$", "select", "=", "$", "this", "->", "_getSelect", "(", ")", ";", "$", "ret", "=", "array", "(", ")", ";", "$", "ret", "[", "'componentId'", "]", "=", "$", "this", "->", "getData", "(", ")"...
for helper partialPaging
[ "for", "helper", "partialPaging" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Directories/List/View/Component.php#L143-L163
koala-framework/koala-framework
Kwc/Directories/List/View/Component.php
Kwc_Directories_List_View_Component.moreItemsAvailable
public function moreItemsAvailable() { $select = $this->_getSelect(); if ($this->_hasSetting('limit')) { $select->unsetPart('limitCount'); } return $this->getPagingCount($select) > $this->_getSetting('limit'); }
php
public function moreItemsAvailable() { $select = $this->_getSelect(); if ($this->_hasSetting('limit')) { $select->unsetPart('limitCount'); } return $this->getPagingCount($select) > $this->_getSetting('limit'); }
[ "public", "function", "moreItemsAvailable", "(", ")", "{", "$", "select", "=", "$", "this", "->", "_getSelect", "(", ")", ";", "if", "(", "$", "this", "->", "_hasSetting", "(", "'limit'", ")", ")", "{", "$", "select", "->", "unsetPart", "(", "'limitCou...
if setting limit is set, it will return hidden elements with paging
[ "if", "setting", "limit", "is", "set", "it", "will", "return", "hidden", "elements", "with", "paging" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Directories/List/View/Component.php#L211-L218
koala-framework/koala-framework
Kwf/Filter/Row/Numberize.php
Kwf_Filter_Row_Numberize._getWhere
private function _getWhere($row) { $where = array(); foreach ($this->_groupBy as $k=>$field) { if (is_array($field)) { $values = $field; $field = $k; $valueFound = false; foreach ($values as $value) { if ...
php
private function _getWhere($row) { $where = array(); foreach ($this->_groupBy as $k=>$field) { if (is_array($field)) { $values = $field; $field = $k; $valueFound = false; foreach ($values as $value) { if ...
[ "private", "function", "_getWhere", "(", "$", "row", ")", "{", "$", "where", "=", "array", "(", ")", ";", "foreach", "(", "$", "this", "->", "_groupBy", "as", "$", "k", "=>", "$", "field", ")", "{", "if", "(", "is_array", "(", "$", "field", ")", ...
legacy für Db_Table
[ "legacy", "für", "Db_Table" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Filter/Row/Numberize.php#L51-L87
koala-framework/koala-framework
Kwf/User/EditRow.php
Kwf_User_EditRow.sendGlobalUserActivated
public function sendGlobalUserActivated() { if ($this->_sendMails) { $row = $this->getModel()->getKwfUserRowById($this->id); $mail = new Kwf_User_Mail_GlobalUserActivated($row); $mail->send(); $this->writeLog('user_mail_GlobalUserActivation'); } }
php
public function sendGlobalUserActivated() { if ($this->_sendMails) { $row = $this->getModel()->getKwfUserRowById($this->id); $mail = new Kwf_User_Mail_GlobalUserActivated($row); $mail->send(); $this->writeLog('user_mail_GlobalUserActivation'); } }
[ "public", "function", "sendGlobalUserActivated", "(", ")", "{", "if", "(", "$", "this", "->", "_sendMails", ")", "{", "$", "row", "=", "$", "this", "->", "getModel", "(", ")", "->", "getKwfUserRowById", "(", "$", "this", "->", "id", ")", ";", "$", "m...
a global user that exists already in service, but not in web
[ "a", "global", "user", "that", "exists", "already", "in", "service", "but", "not", "in", "web" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/User/EditRow.php#L278-L286
koala-framework/koala-framework
Kwf/Config/Web.php
Kwf_Config_Web.mergeConfigs
public static function mergeConfigs(Zend_Config $main, Zend_Config $merge) { // check if all keys are of type 'integer' and if so, only use merge config $everyKeyIsInteger = true; foreach($merge as $key => $item) { if (!is_int($key)) { $everyKeyIsInteger = false; ...
php
public static function mergeConfigs(Zend_Config $main, Zend_Config $merge) { // check if all keys are of type 'integer' and if so, only use merge config $everyKeyIsInteger = true; foreach($merge as $key => $item) { if (!is_int($key)) { $everyKeyIsInteger = false; ...
[ "public", "static", "function", "mergeConfigs", "(", "Zend_Config", "$", "main", ",", "Zend_Config", "$", "merge", ")", "{", "// check if all keys are of type 'integer' and if so, only use merge config", "$", "everyKeyIsInteger", "=", "true", ";", "foreach", "(", "$", "...
Diesen Merge sollte eigentlich das Zend machen, aber das merged nicht so wie wir das erwarten. Beispiel: Main Config: bla.blubb[] = x bla.blubb[] = y bla.blubb[] = z Merge Config: bla.blubb[] = a bla.blubb[] = b Nach den Config-Section regeln würde man erwarten, dass nach dem mergen nur mehr a und b drin steht. Tats...
[ "Diesen", "Merge", "sollte", "eigentlich", "das", "Zend", "machen", "aber", "das", "merged", "nicht", "so", "wie", "wir", "das", "erwarten", ".", "Beispiel", ":" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Config/Web.php#L229-L262
koala-framework/koala-framework
Kwf/Component/Cache/Fnf/Model.php
Kwf_Component_Cache_Fnf_Model.getContent
public function getContent($select = array()) { $ret = array(); foreach ($this->getRows($select) as $row) { $ret[] = $row->component_id . '(' . $row->type . ' - ' . $row->value . ') ' . $row->component_class . ': ' . $row->deleted; } return $ret; }
php
public function getContent($select = array()) { $ret = array(); foreach ($this->getRows($select) as $row) { $ret[] = $row->component_id . '(' . $row->type . ' - ' . $row->value . ') ' . $row->component_class . ': ' . $row->deleted; } return $ret; }
[ "public", "function", "getContent", "(", "$", "select", "=", "array", "(", ")", ")", "{", "$", "ret", "=", "array", "(", ")", ";", "foreach", "(", "$", "this", "->", "getRows", "(", "$", "select", ")", "as", "$", "row", ")", "{", "$", "ret", "[...
zum Testen
[ "zum", "Testen" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Component/Cache/Fnf/Model.php#L16-L23
koala-framework/koala-framework
Kwc/Feedback/Form/Controller.php
Kwc_Feedback_Form_Controller._getSelect
protected function _getSelect() { $ret = parent::_getSelect(); $componentId = $this->_getParam('componentId'); $component = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($componentId, array('ignoreVisible' => true)); if (isset($component->parent->chained)) { ...
php
protected function _getSelect() { $ret = parent::_getSelect(); $componentId = $this->_getParam('componentId'); $component = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($componentId, array('ignoreVisible' => true)); if (isset($component->parent->chained)) { ...
[ "protected", "function", "_getSelect", "(", ")", "{", "$", "ret", "=", "parent", "::", "_getSelect", "(", ")", ";", "$", "componentId", "=", "$", "this", "->", "_getParam", "(", "'componentId'", ")", ";", "$", "component", "=", "Kwf_Component_Data_Root", "...
shows all feedbacks in all languages
[ "shows", "all", "feedbacks", "in", "all", "languages" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Feedback/Form/Controller.php#L17-L31
koala-framework/koala-framework
Kwf/Validate/Time.php
Kwf_Validate_Time.isValid
public function isValid($value) { $valueString = (string) $value; $this->_setValue($valueString); if (!preg_match('/^\d{2}:\d{2}$/', $valueString)) { $this->_error(self::NOT_HH_MM); return false; } list($hour, $minute) = sscanf($valueString, '%d:%d'...
php
public function isValid($value) { $valueString = (string) $value; $this->_setValue($valueString); if (!preg_match('/^\d{2}:\d{2}$/', $valueString)) { $this->_error(self::NOT_HH_MM); return false; } list($hour, $minute) = sscanf($valueString, '%d:%d'...
[ "public", "function", "isValid", "(", "$", "value", ")", "{", "$", "valueString", "=", "(", "string", ")", "$", "value", ";", "$", "this", "->", "_setValue", "(", "$", "valueString", ")", ";", "if", "(", "!", "preg_match", "(", "'/^\\d{2}:\\d{2}$/'", "...
Defined by Zend_Validate_Interface Returns true if and only if $value is a valid date of the format YYYY-MM-DD @param string $value @return boolean
[ "Defined", "by", "Zend_Validate_Interface" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Validate/Time.php#L35-L54
koala-framework/koala-framework
Kwf/Media/Output/Component.php
Kwf_Media_Output_Component.getResponsiveImageVars
public static function getResponsiveImageVars($dimensions, $imageFile) { $ret = array(); $width = 0; $aspectRatio = 0; $ret['minWidth'] = 0; $ret['maxWidth'] = 0; if (isset($dimensions['width']) && $dimensions['width'] > 0) { $aspectRatio = $dimensions['he...
php
public static function getResponsiveImageVars($dimensions, $imageFile) { $ret = array(); $width = 0; $aspectRatio = 0; $ret['minWidth'] = 0; $ret['maxWidth'] = 0; if (isset($dimensions['width']) && $dimensions['width'] > 0) { $aspectRatio = $dimensions['he...
[ "public", "static", "function", "getResponsiveImageVars", "(", "$", "dimensions", ",", "$", "imageFile", ")", "{", "$", "ret", "=", "array", "(", ")", ";", "$", "width", "=", "0", ";", "$", "aspectRatio", "=", "0", ";", "$", "ret", "[", "'minWidth'", ...
Helper function that calculates vars needed by components with responsive images
[ "Helper", "function", "that", "calculates", "vars", "needed", "by", "components", "with", "responsive", "images" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Media/Output/Component.php#L7-L22
koala-framework/koala-framework
Kwf/Media/Output/Component.php
Kwf_Media_Output_Component.getMediaOutputForDimension
public static function getMediaOutputForDimension($data, $dim, $type) { if (isset($data['url'])) { $file = Kwf_Config::getValue('mediaCacheDir').'/remotefile_' . md5($data['url']); if (!is_file($file)) { $httpClientConfig = array( 'timeout' => 20, ...
php
public static function getMediaOutputForDimension($data, $dim, $type) { if (isset($data['url'])) { $file = Kwf_Config::getValue('mediaCacheDir').'/remotefile_' . md5($data['url']); if (!is_file($file)) { $httpClientConfig = array( 'timeout' => 20, ...
[ "public", "static", "function", "getMediaOutputForDimension", "(", "$", "data", ",", "$", "dim", ",", "$", "type", ")", "{", "if", "(", "isset", "(", "$", "data", "[", "'url'", "]", ")", ")", "{", "$", "file", "=", "Kwf_Config", "::", "getValue", "("...
Helper function that returns scaled and croped images for media output Used by image components in getMediaOutput. Tries to avoid scaling if not required (to keep gif animation intact)
[ "Helper", "function", "that", "returns", "scaled", "and", "croped", "images", "for", "media", "output" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Media/Output/Component.php#L30-L127
koala-framework/koala-framework
Kwf/Media/Output/Component.php
Kwf_Media_Output_Component.isValidImage
public static function isValidImage($id, $type, $className) { $isValid = Kwf_Media_Output_Component::isValid($id); if ($isValid == Kwf_Media_Output_IsValidInterface::VALID || $isValid == Kwf_Media_Output_IsValidInterface::VALID_DONT_CACHE ) { // Can be searched with i...
php
public static function isValidImage($id, $type, $className) { $isValid = Kwf_Media_Output_Component::isValid($id); if ($isValid == Kwf_Media_Output_IsValidInterface::VALID || $isValid == Kwf_Media_Output_IsValidInterface::VALID_DONT_CACHE ) { // Can be searched with i...
[ "public", "static", "function", "isValidImage", "(", "$", "id", ",", "$", "type", ",", "$", "className", ")", "{", "$", "isValid", "=", "Kwf_Media_Output_Component", "::", "isValid", "(", "$", "id", ")", ";", "if", "(", "$", "isValid", "==", "Kwf_Media_O...
Checks if given type (starting with Kwf_Media::DONT_HASH_TYPE_PREFIX) should return an image by checking Kwf_Media_Image::getResponsiveWidthSteps of image
[ "Checks", "if", "given", "type", "(", "starting", "with", "Kwf_Media", "::", "DONT_HASH_TYPE_PREFIX", ")", "should", "return", "an", "image", "by", "checking", "Kwf_Media_Image", "::", "getResponsiveWidthSteps", "of", "image" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Media/Output/Component.php#L133-L161
koala-framework/koala-framework
Kwf/Media/Output/Component.php
Kwf_Media_Output_Component.isValid
public static function isValid($id) { $writeCache = false; $cacheId = 'media-isvalid-component-'.$id; $plugins = Kwf_Cache_Simple::fetch($cacheId, $success); if ($success) { //success means it's VALID and we successfully fetched the $plugins $ret = Kwf_Media_O...
php
public static function isValid($id) { $writeCache = false; $cacheId = 'media-isvalid-component-'.$id; $plugins = Kwf_Cache_Simple::fetch($cacheId, $success); if ($success) { //success means it's VALID and we successfully fetched the $plugins $ret = Kwf_Media_O...
[ "public", "static", "function", "isValid", "(", "$", "id", ")", "{", "$", "writeCache", "=", "false", ";", "$", "cacheId", "=", "'media-isvalid-component-'", ".", "$", "id", ";", "$", "plugins", "=", "Kwf_Cache_Simple", "::", "fetch", "(", "$", "cacheId", ...
Helper function that can be used in Component implementing Kwf_Media_Output_IsValidInterface to check if the component is visible to the current user
[ "Helper", "function", "that", "can", "be", "used", "in", "Component", "implementing", "Kwf_Media_Output_IsValidInterface", "to", "check", "if", "the", "component", "is", "visible", "to", "the", "current", "user" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Media/Output/Component.php#L167-L247
koala-framework/koala-framework
Kwf/Model/Select.php
Kwf_Model_Select.whereEquals
public function whereEquals($field, $value = null) { if (is_array($field)) { foreach ($field as $f=>$v) { $this->whereEquals($f, $v); } return $this; } if (is_null($value)) { throw new Kwf_Exception("value is required"); ...
php
public function whereEquals($field, $value = null) { if (is_array($field)) { foreach ($field as $f=>$v) { $this->whereEquals($f, $v); } return $this; } if (is_null($value)) { throw new Kwf_Exception("value is required"); ...
[ "public", "function", "whereEquals", "(", "$", "field", ",", "$", "value", "=", "null", ")", "{", "if", "(", "is_array", "(", "$", "field", ")", ")", "{", "foreach", "(", "$", "field", "as", "$", "f", "=>", "$", "v", ")", "{", "$", "this", "->"...
/* interface Kwf_Model_Select_Expr_Interface {} class Kwf_Model_Select_Expr_CompareField_Abstract implements Kwf_Model_Select_Expr_Interface { __construct($field, $value) getField getValue } class Kwf_Model_Select_Expr_Not implements Kwf_Model_Select_Expr_Interface { __construct(Kwf_Model_Select_Expr_Interface $expr); ...
[ "/", "*", "interface", "Kwf_Model_Select_Expr_Interface", "{}", "class", "Kwf_Model_Select_Expr_CompareField_Abstract", "implements", "Kwf_Model_Select_Expr_Interface", "{", "__construct", "(", "$field", "$value", ")", "getField", "getValue", "}", "class", "Kwf_Model_Select_Exp...
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Model/Select.php#L96-L109
koala-framework/koala-framework
Kwf/Model/Tree/Row.php
Kwf_Model_Tree_Row.getTreePathRows
public function getTreePathRows() { $parts = array($this); $upperRow = $this; while (!is_null($upperRow = $upperRow->getParentNode())) { $parts[] = $upperRow; } return array_reverse($parts); }
php
public function getTreePathRows() { $parts = array($this); $upperRow = $this; while (!is_null($upperRow = $upperRow->getParentNode())) { $parts[] = $upperRow; } return array_reverse($parts); }
[ "public", "function", "getTreePathRows", "(", ")", "{", "$", "parts", "=", "array", "(", "$", "this", ")", ";", "$", "upperRow", "=", "$", "this", ";", "while", "(", "!", "is_null", "(", "$", "upperRow", "=", "$", "upperRow", "->", "getParentNode", "...
Kann überschrieben werden um bestimmte Kategorien auszublenden, zB ProSalzburg die Root-Kategorie
[ "Kann", "überschrieben", "werden", "um", "bestimmte", "Kategorien", "auszublenden", "zB", "ProSalzburg", "die", "Root", "-", "Kategorie" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Model/Tree/Row.php#L36-L44
koala-framework/koala-framework
Kwc/Shop/Cart/Orders.php
Kwc_Shop_Cart_Orders.getCartOrderId
public static function getCartOrderId() { if (isset(self::$_cartOrderId)) { return self::$_cartOrderId; } $session = new Kwf_Session_Namespace('kwcShopCart'); return $session->orderId; }
php
public static function getCartOrderId() { if (isset(self::$_cartOrderId)) { return self::$_cartOrderId; } $session = new Kwf_Session_Namespace('kwcShopCart'); return $session->orderId; }
[ "public", "static", "function", "getCartOrderId", "(", ")", "{", "if", "(", "isset", "(", "self", "::", "$", "_cartOrderId", ")", ")", "{", "return", "self", "::", "$", "_cartOrderId", ";", "}", "$", "session", "=", "new", "Kwf_Session_Namespace", "(", "...
Gibt die cart order id zurück, auch wenn sie in diesem request schon per resetCartOrderId zurück gesetzt wurde.
[ "Gibt", "die", "cart", "order", "id", "zurück", "auch", "wenn", "sie", "in", "diesem", "request", "schon", "per", "resetCartOrderId", "zurück", "gesetzt", "wurde", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Shop/Cart/Orders.php#L87-L94
koala-framework/koala-framework
Kwf/Form.php
Kwf_Form.hideForValue
public function hideForValue(Kwf_Form_Field_Abstract $field, $value, Kwf_Form_Field_Abstract $hideField) { $this->_hideForValue[] = array('field' => $field, 'value' => $value, 'hide' => $hideField); return $this; }
php
public function hideForValue(Kwf_Form_Field_Abstract $field, $value, Kwf_Form_Field_Abstract $hideField) { $this->_hideForValue[] = array('field' => $field, 'value' => $value, 'hide' => $hideField); return $this; }
[ "public", "function", "hideForValue", "(", "Kwf_Form_Field_Abstract", "$", "field", ",", "$", "value", ",", "Kwf_Form_Field_Abstract", "$", "hideField", ")", "{", "$", "this", "->", "_hideForValue", "[", "]", "=", "array", "(", "'field'", "=>", "$", "field", ...
Hide a field has a specific value, hide other fields ATM only implemented in Frontend Form
[ "Hide", "a", "field", "has", "a", "specific", "value", "hide", "other", "fields" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form.php#L38-L42
koala-framework/koala-framework
Kwf/Form.php
Kwf_Form._getRowByParentRow
protected function _getRowByParentRow($parentRow) { if ($parentRow && $this->_model instanceof Kwf_Model_Field) { $ret = $this->_model->getRowByParentRow($parentRow); } else { $ret = $this->getRow($parentRow); } if (is_null($ret)) return $ret; return (...
php
protected function _getRowByParentRow($parentRow) { if ($parentRow && $this->_model instanceof Kwf_Model_Field) { $ret = $this->_model->getRowByParentRow($parentRow); } else { $ret = $this->getRow($parentRow); } if (is_null($ret)) return $ret; return (...
[ "protected", "function", "_getRowByParentRow", "(", "$", "parentRow", ")", "{", "if", "(", "$", "parentRow", "&&", "$", "this", "->", "_model", "instanceof", "Kwf_Model_Field", ")", "{", "$", "ret", "=", "$", "this", "->", "_model", "->", "getRowByParentRow"...
aber besser getRow überschreiben!!!
[ "aber", "besser", "getRow", "überschreiben!!!" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form.php#L79-L88
koala-framework/koala-framework
Kwf/Form.php
Kwf_Form._rowIsParentRow
protected final function _rowIsParentRow($parentRow) { $id = $this->_getIdByParentRow($parentRow); if ($parentRow && !$parentRow->{$parentRow->getModel()->getPrimaryKey()}) { //remember _createdRows, because once it is saved it will have an id and we can't compare it to $id anymore ...
php
protected final function _rowIsParentRow($parentRow) { $id = $this->_getIdByParentRow($parentRow); if ($parentRow && !$parentRow->{$parentRow->getModel()->getPrimaryKey()}) { //remember _createdRows, because once it is saved it will have an id and we can't compare it to $id anymore ...
[ "protected", "final", "function", "_rowIsParentRow", "(", "$", "parentRow", ")", "{", "$", "id", "=", "$", "this", "->", "_getIdByParentRow", "(", "$", "parentRow", ")", ";", "if", "(", "$", "parentRow", "&&", "!", "$", "parentRow", "->", "{", "$", "pa...
Damit bei verschachtelten Forms die das selben Model verwenden nicht zwei unterschiedliche rows verwendet werden, was beim hinzufügen ein problem ist. Wird aufgerufen von getRow, in Kwc_User_Edit_Form_Form wirds auch verwendet
[ "Damit", "bei", "verschachtelten", "Forms", "die", "das", "selben", "Model", "verwenden", "nicht", "zwei", "unterschiedliche", "rows", "verwendet", "werden", "was", "beim", "hinzufügen", "ein", "problem", "ist", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form.php#L196-L214
koala-framework/koala-framework
Kwf/Form.php
Kwf_Form.formatValidationErrors
public static function formatValidationErrors($errors) { $msg = array(); foreach ($errors as $i) { if (!is_array($i)) { throw new Kwf_Exception('Form errors must be of type array'); } $name = ''; if (isset($i['field'])) { ...
php
public static function formatValidationErrors($errors) { $msg = array(); foreach ($errors as $i) { if (!is_array($i)) { throw new Kwf_Exception('Form errors must be of type array'); } $name = ''; if (isset($i['field'])) { ...
[ "public", "static", "function", "formatValidationErrors", "(", "$", "errors", ")", "{", "$", "msg", "=", "array", "(", ")", ";", "foreach", "(", "$", "errors", "as", "$", "i", ")", "{", "if", "(", "!", "is_array", "(", "$", "i", ")", ")", "{", "t...
Static helper function that formats form errors @return string[]
[ "Static", "helper", "function", "that", "formats", "form", "errors" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form.php#L308-L328
koala-framework/koala-framework
Kwf/Form/Field/TreeSelect.php
Kwf_Form_Field_TreeSelect.load
public function load($row, $postData = array()) { $ret = parent::load($row, $postData); $ref = $this->getReference(); if ($ref && $row && !empty($ret[$this->getFieldName()])) { $id = $ret[$this->getFieldName()]; $parentRow = $row->getParentRow($ref); if ...
php
public function load($row, $postData = array()) { $ret = parent::load($row, $postData); $ref = $this->getReference(); if ($ref && $row && !empty($ret[$this->getFieldName()])) { $id = $ret[$this->getFieldName()]; $parentRow = $row->getParentRow($ref); if ...
[ "public", "function", "load", "(", "$", "row", ",", "$", "postData", "=", "array", "(", ")", ")", "{", "$", "ret", "=", "parent", "::", "load", "(", "$", "row", ",", "$", "postData", ")", ";", "$", "ref", "=", "$", "this", "->", "getReference", ...
korrekt darstellt
[ "korrekt", "darstellt" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Form/Field/TreeSelect.php#L27-L63
koala-framework/koala-framework
Kwf/Model/ProxyCache.php
Kwf_Model_ProxyCache.getRow
public function getRow($select) { if (!is_object($select)) { $select = $this->select($select); } $select->limit(1); return $this->getRows($select)->current(); }
php
public function getRow($select) { if (!is_object($select)) { $select = $this->select($select); } $select->limit(1); return $this->getRows($select)->current(); }
[ "public", "function", "getRow", "(", "$", "select", ")", "{", "if", "(", "!", "is_object", "(", "$", "select", ")", ")", "{", "$", "select", "=", "$", "this", "->", "select", "(", "$", "select", ")", ";", "}", "$", "select", "->", "limit", "(", ...
(und nicht wie Model_Proxy)
[ "(", "und", "nicht", "wie", "Model_Proxy", ")" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Model/ProxyCache.php#L21-L28
koala-framework/koala-framework
Kwc/Shop/Cart/Checkout/Payment/PayPal/ConfirmLink/Trl/Controller.php
Kwc_Shop_Cart_Checkout_Payment_PayPal_ConfirmLink_Trl_Controller.jsonConfirmOrderAction
public function jsonConfirmOrderAction() { $component = Kwf_Component_Data_Root::getInstance() ->getComponentById($this->_getParam('paymentComponentId')); $order = Kwf_Model_Abstract::getInstance(Kwc_Abstract::getSetting($component->chained->getParentByClass('Kwc_Shop_Cart_Component')->c...
php
public function jsonConfirmOrderAction() { $component = Kwf_Component_Data_Root::getInstance() ->getComponentById($this->_getParam('paymentComponentId')); $order = Kwf_Model_Abstract::getInstance(Kwc_Abstract::getSetting($component->chained->getParentByClass('Kwc_Shop_Cart_Component')->c...
[ "public", "function", "jsonConfirmOrderAction", "(", ")", "{", "$", "component", "=", "Kwf_Component_Data_Root", "::", "getInstance", "(", ")", "->", "getComponentById", "(", "$", "this", "->", "_getParam", "(", "'paymentComponentId'", ")", ")", ";", "$", "order...
is called by js, so it might be that this code isn't called at all
[ "is", "called", "by", "js", "so", "it", "might", "be", "that", "this", "code", "isn", "t", "called", "at", "all" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Shop/Cart/Checkout/Payment/PayPal/ConfirmLink/Trl/Controller.php#L5-L23
koala-framework/koala-framework
Kwc/Menu/Abstract/Component.php
Kwc_Menu_Abstract_Component.getMenuData
public function getMenuData($parentData = null, $select = array(), $editableClass = 'Kwc_Menu_EditableItems_Component') { return $this->_getMenuData($parentData, $select, $editableClass); }
php
public function getMenuData($parentData = null, $select = array(), $editableClass = 'Kwc_Menu_EditableItems_Component') { return $this->_getMenuData($parentData, $select, $editableClass); }
[ "public", "function", "getMenuData", "(", "$", "parentData", "=", "null", ",", "$", "select", "=", "array", "(", ")", ",", "$", "editableClass", "=", "'Kwc_Menu_EditableItems_Component'", ")", "{", "return", "$", "this", "->", "_getMenuData", "(", "$", "pare...
Used by chained and Events
[ "Used", "by", "chained", "and", "Events" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Menu/Abstract/Component.php#L167-L170
koala-framework/koala-framework
Kwc/Abstract/Image/Events.php
Kwc_Abstract_Image_Events._onOwnRowUpdateNotVisible
protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event) { parent::_onOwnRowUpdateNotVisible($c, $event); if ($event->isDirty(array('kwf_upload_id', 'width', 'height', 'dimension', 'crop_x', 'crop_y', 'crop_width', 'cro...
php
protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event) { parent::_onOwnRowUpdateNotVisible($c, $event); if ($event->isDirty(array('kwf_upload_id', 'width', 'height', 'dimension', 'crop_x', 'crop_y', 'crop_width', 'cro...
[ "protected", "function", "_onOwnRowUpdateNotVisible", "(", "Kwf_Component_Data", "$", "c", ",", "Kwf_Events_Event_Row_Abstract", "$", "event", ")", "{", "parent", "::", "_onOwnRowUpdateNotVisible", "(", "$", "c", ",", "$", "event", ")", ";", "if", "(", "$", "eve...
gets called when own row gets updated, weather component is visible or not
[ "gets", "called", "when", "own", "row", "gets", "updated", "weather", "component", "is", "visible", "or", "not" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract/Image/Events.php#L60-L69
koala-framework/koala-framework
Kwf/Model/Data/Abstract.php
Kwf_Model_Data_Abstract._selectDataKeys
protected function _selectDataKeys(Kwf_Model_Select $select, array &$inData) { $dataKeys = array(); foreach ($inData as $key=>$d) { if ($this->_matchSelect($d, $select)) { $dataKeys[] = $key; } } if ($order = $select->getPart(Kwf_Model_Select:...
php
protected function _selectDataKeys(Kwf_Model_Select $select, array &$inData) { $dataKeys = array(); foreach ($inData as $key=>$d) { if ($this->_matchSelect($d, $select)) { $dataKeys[] = $key; } } if ($order = $select->getPart(Kwf_Model_Select:...
[ "protected", "function", "_selectDataKeys", "(", "Kwf_Model_Select", "$", "select", ",", "array", "&", "$", "inData", ")", "{", "$", "dataKeys", "=", "array", "(", ")", ";", "foreach", "(", "$", "inData", "as", "$", "key", "=>", "$", "d", ")", "{", "...
& für performance
[ "&", "für", "performance" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Model/Data/Abstract.php#L158-L216
koala-framework/koala-framework
Kwf/Controller/Action/Auto/Synctree.php
Kwf_Controller_Action_Auto_Synctree._getSelect
protected function _getSelect() { $select = $this->_model->select(); if ($this->_hasPosition) { $select->order('pos'); } else if (!$select->hasPart('order') && $this->_defaultOrder) { $select->order( $this->_defaultOrder['field'], $this...
php
protected function _getSelect() { $select = $this->_model->select(); if ($this->_hasPosition) { $select->order('pos'); } else if (!$select->hasPart('order') && $this->_defaultOrder) { $select->order( $this->_defaultOrder['field'], $this...
[ "protected", "function", "_getSelect", "(", ")", "{", "$", "select", "=", "$", "this", "->", "_model", "->", "select", "(", ")", ";", "if", "(", "$", "this", "->", "_hasPosition", ")", "{", "$", "select", "->", "order", "(", "'pos'", ")", ";", "}",...
override this method to handle the output of this view. Just return the select statement which serves your needs.
[ "override", "this", "method", "to", "handle", "the", "output", "of", "this", "view", ".", "Just", "return", "the", "select", "statement", "which", "serves", "your", "needs", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Controller/Action/Auto/Synctree.php#L372-L384
koala-framework/koala-framework
Kwc/Abstract/Image/Update/20150309Legacy40002.php
Kwc_Abstract_Image_Update_20150309Legacy40002.update
public function update() { parent::update(); $select = new Kwf_Model_Select(); $select->where(new Kwf_Model_Select_Expr_Or(array( new Kwf_Model_Select_Expr_Equals('dimension', 'customcrop'), new Kwf_Model_Select_Expr_Equals('dimension', 'custombestfit') ))); ...
php
public function update() { parent::update(); $select = new Kwf_Model_Select(); $select->where(new Kwf_Model_Select_Expr_Or(array( new Kwf_Model_Select_Expr_Equals('dimension', 'customcrop'), new Kwf_Model_Select_Expr_Equals('dimension', 'custombestfit') ))); ...
[ "public", "function", "update", "(", ")", "{", "parent", "::", "update", "(", ")", ";", "$", "select", "=", "new", "Kwf_Model_Select", "(", ")", ";", "$", "select", "->", "where", "(", "new", "Kwf_Model_Select_Expr_Or", "(", "array", "(", "new", "Kwf_Mod...
Test update: vps update --class=Update_19
[ "Test", "update", ":", "vps", "update", "--", "class", "=", "Update_19" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract/Image/Update/20150309Legacy40002.php#L5-L43
koala-framework/koala-framework
Kwf/Util/Aws/ElastiCache/CacheClusterEndpoints.php
Kwf_Util_Aws_ElastiCache_CacheClusterEndpoints.get
public static function get($cacheClusterId) { if (!$cacheClusterId) throw new Kwf_Exception("cacheClusterId is requried"); $ec = new Kwf_Util_Aws_ElastiCache(); $r = $ec->describe_cache_clusters(array( 'ShowCacheNodeInfo' => true, 'CacheClusterId' => $cacheClusterId ...
php
public static function get($cacheClusterId) { if (!$cacheClusterId) throw new Kwf_Exception("cacheClusterId is requried"); $ec = new Kwf_Util_Aws_ElastiCache(); $r = $ec->describe_cache_clusters(array( 'ShowCacheNodeInfo' => true, 'CacheClusterId' => $cacheClusterId ...
[ "public", "static", "function", "get", "(", "$", "cacheClusterId", ")", "{", "if", "(", "!", "$", "cacheClusterId", ")", "throw", "new", "Kwf_Exception", "(", "\"cacheClusterId is requried\"", ")", ";", "$", "ec", "=", "new", "Kwf_Util_Aws_ElastiCache", "(", "...
uncached, use getCached to use cache
[ "uncached", "use", "getCached", "to", "use", "cache" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Aws/ElastiCache/CacheClusterEndpoints.php#L24-L47
koala-framework/koala-framework
Kwf/Util/Aws/ElastiCache/CacheClusterEndpoints.php
Kwf_Util_Aws_ElastiCache_CacheClusterEndpoints.getCached
public static function getCached($cacheClusterId) { $cacheId = self::_getCacheId($cacheClusterId); $servers = self::_getCache()->load($cacheId); if ($servers === false) { $servers = self::refreshCache($cacheClusterId); } return $servers; }
php
public static function getCached($cacheClusterId) { $cacheId = self::_getCacheId($cacheClusterId); $servers = self::_getCache()->load($cacheId); if ($servers === false) { $servers = self::refreshCache($cacheClusterId); } return $servers; }
[ "public", "static", "function", "getCached", "(", "$", "cacheClusterId", ")", "{", "$", "cacheId", "=", "self", "::", "_getCacheId", "(", "$", "cacheClusterId", ")", ";", "$", "servers", "=", "self", "::", "_getCache", "(", ")", "->", "load", "(", "$", ...
if used you need to refresh this cache yourself
[ "if", "used", "you", "need", "to", "refresh", "this", "cache", "yourself" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Aws/ElastiCache/CacheClusterEndpoints.php#L57-L65
koala-framework/koala-framework
Kwf/Db/Table/Select.php
Kwf_Db_Table_Select.searchLike
public function searchLike($searchValues = array(), $searchFields = '*') { if (is_string($searchValues)) $searchValues = array('query' => $searchValues); if (is_string($searchFields)) $searchFields = array($searchFields); foreach ($searchValues as $column => $value) { if (empty(...
php
public function searchLike($searchValues = array(), $searchFields = '*') { if (is_string($searchValues)) $searchValues = array('query' => $searchValues); if (is_string($searchFields)) $searchFields = array($searchFields); foreach ($searchValues as $column => $value) { if (empty(...
[ "public", "function", "searchLike", "(", "$", "searchValues", "=", "array", "(", ")", ",", "$", "searchFields", "=", "'*'", ")", "{", "if", "(", "is_string", "(", "$", "searchValues", ")", ")", "$", "searchValues", "=", "array", "(", "'query'", "=>", "...
Adds the needed wheres for a search @deprecated use Kwf_Model_Select_Expr_SearchLike instead @param string|array $searchValues An array with the db-field in the key and the search value as value. Field query means to search in all given fields for this value (see the second argument). If a string is given, it is inter...
[ "Adds", "the", "needed", "wheres", "for", "a", "search" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Db/Table/Select.php#L53-L102
koala-framework/koala-framework
Kwf/Db/Table/Select.php
Kwf_Db_Table_Select.from
public function from($name, $cols = self::SQL_WILDCARD, $schema = null) { if ($name instanceof Kwf_Db_Table) { $schema = $name->getTableName(); $schema = $name->getSchemaName(); } return $this->joinInner($name, null, $cols, $schema); }
php
public function from($name, $cols = self::SQL_WILDCARD, $schema = null) { if ($name instanceof Kwf_Db_Table) { $schema = $name->getTableName(); $schema = $name->getSchemaName(); } return $this->joinInner($name, null, $cols, $schema); }
[ "public", "function", "from", "(", "$", "name", ",", "$", "cols", "=", "self", "::", "SQL_WILDCARD", ",", "$", "schema", "=", "null", ")", "{", "if", "(", "$", "name", "instanceof", "Kwf_Db_Table", ")", "{", "$", "schema", "=", "$", "name", "->", "...
Adds a FROM table and optional columns to the query. The table name can be expressed @param array|string|Zend_Db_Expr|Kwf_Db_Table $name The table name or an associative array relating table name to correlation name. @param array|string|Zend_Db_Expr $cols The columns to select from this table. @param string $schem...
[ "Adds", "a", "FROM", "table", "and", "optional", "columns", "to", "the", "query", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Db/Table/Select.php#L196-L204
koala-framework/koala-framework
Kwf/Db/Table/Select.php
Kwf_Db_Table_Select.assemble
public function assemble() { $fields = $this->getPart(Kwf_Db_Table_Select::COLUMNS); $primary = $this->_table->getTableName(); $schema = $this->_table->getSchemaName(); if (count($this->_parts[self::UNION]) == 0) { // If no fields are specified we assume all fields ...
php
public function assemble() { $fields = $this->getPart(Kwf_Db_Table_Select::COLUMNS); $primary = $this->_table->getTableName(); $schema = $this->_table->getSchemaName(); if (count($this->_parts[self::UNION]) == 0) { // If no fields are specified we assume all fields ...
[ "public", "function", "assemble", "(", ")", "{", "$", "fields", "=", "$", "this", "->", "getPart", "(", "Kwf_Db_Table_Select", "::", "COLUMNS", ")", ";", "$", "primary", "=", "$", "this", "->", "_table", "->", "getTableName", "(", ")", ";", "$", "schem...
Performs a validation on the select query before passing back to the parent class. Ensures that only columns from the primary Kwf_Db_Table are returned in the result. @return string|null This object as a SELECT string (or null if a string cannot be produced)
[ "Performs", "a", "validation", "on", "the", "select", "query", "before", "passing", "back", "to", "the", "parent", "class", ".", "Ensures", "that", "only", "columns", "from", "the", "primary", "Kwf_Db_Table", "are", "returned", "in", "the", "result", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Db/Table/Select.php#L212-L244
koala-framework/koala-framework
Kwf/Acl.php
Kwf_Acl.loadKwcResources
public function loadKwcResources() { if (!Kwf_Registry::get('db')) return; //if we don't have a db configured yet skip kwc resources. required to be able to build assets without db if ($this->_kwcResourcesLoaded) return; $this->_kwcResourcesLoaded = true; $t = microtime(true); ...
php
public function loadKwcResources() { if (!Kwf_Registry::get('db')) return; //if we don't have a db configured yet skip kwc resources. required to be able to build assets without db if ($this->_kwcResourcesLoaded) return; $this->_kwcResourcesLoaded = true; $t = microtime(true); ...
[ "public", "function", "loadKwcResources", "(", ")", "{", "if", "(", "!", "Kwf_Registry", "::", "get", "(", "'db'", ")", ")", "return", ";", "//if we don't have a db configured yet skip kwc resources. required to be able to build assets without db", "if", "(", "$", "this",...
Lädt Resourcen die von Komponenten kommen. Muss extra aufgerufen werden wenn diese Resourcen benötigt werden, aus performance gründen
[ "Lädt", "Resourcen", "die", "von", "Komponenten", "kommen", ".", "Muss", "extra", "aufgerufen", "werden", "wenn", "diese", "Resourcen", "benötigt", "werden", "aus", "performance", "gründen" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Acl.php#L261-L283
koala-framework/koala-framework
Kwf/Assets/GoogleMapsApiKey.php
Kwf_Assets_GoogleMapsApiKey.getConfigDomain
public static function getConfigDomain($host) { if (!$host) return null; $longDomainEndings = array('or.at', 'co.at', 'gv.at', 'co.uk'); // cleaning out the dots of long domain endings foreach ($longDomainEndings as $k => $v) { $longDomainEndings[$k] = str_replace('.', ...
php
public static function getConfigDomain($host) { if (!$host) return null; $longDomainEndings = array('or.at', 'co.at', 'gv.at', 'co.uk'); // cleaning out the dots of long domain endings foreach ($longDomainEndings as $k => $v) { $longDomainEndings[$k] = str_replace('.', ...
[ "public", "static", "function", "getConfigDomain", "(", "$", "host", ")", "{", "if", "(", "!", "$", "host", ")", "return", "null", ";", "$", "longDomainEndings", "=", "array", "(", "'or.at'", ",", "'co.at'", ",", "'gv.at'", ",", "'co.uk'", ")", ";", "/...
for unit testing only
[ "for", "unit", "testing", "only" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Assets/GoogleMapsApiKey.php#L20-L42
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getSettings
public static function getSettings() { $ret = parent::getSettings(); $ret['viewCache'] = true; $ret['contentSender'] = 'Kwf_Component_Abstract_ContentSender_Default'; $ret['layoutClass'] = 'Kwf_Component_Layout_Default'; $ret['plugins'] = array(); return $ret; }
php
public static function getSettings() { $ret = parent::getSettings(); $ret['viewCache'] = true; $ret['contentSender'] = 'Kwf_Component_Abstract_ContentSender_Default'; $ret['layoutClass'] = 'Kwf_Component_Layout_Default'; $ret['plugins'] = array(); return $ret; }
[ "public", "static", "function", "getSettings", "(", ")", "{", "$", "ret", "=", "parent", "::", "getSettings", "(", ")", ";", "$", "ret", "[", "'viewCache'", "]", "=", "true", ";", "$", "ret", "[", "'contentSender'", "]", "=", "'Kwf_Component_Abstract_Conte...
Returns static settings of this component Override to change settings @return array
[ "Returns", "static", "settings", "of", "this", "component" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L105-L113
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getChildComponentClasses
public static function getChildComponentClasses($class, $select = array()) { $selectType = gettype($select); if ($selectType == 'string' && is_string($class)) { //simple case no. 1: get from specific generator $g = Kwc_Abstract::getSetting($class, 'generators'); i...
php
public static function getChildComponentClasses($class, $select = array()) { $selectType = gettype($select); if ($selectType == 'string' && is_string($class)) { //simple case no. 1: get from specific generator $g = Kwc_Abstract::getSetting($class, 'generators'); i...
[ "public", "static", "function", "getChildComponentClasses", "(", "$", "class", ",", "$", "select", "=", "array", "(", ")", ")", "{", "$", "selectType", "=", "gettype", "(", "$", "select", ")", ";", "if", "(", "$", "selectType", "==", "'string'", "&&", ...
Returns child component classes of a componentclass or a componentData @param string|Kwf_Component_Data if data inherited generators are returned as well @param array Optional filtering (string to get for one generator)
[ "Returns", "child", "component", "classes", "of", "a", "componentclass", "or", "a", "componentData" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L121-L192
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getIndirectChildComponentClasses
public static function getIndirectChildComponentClasses($class, $select = array()) { if (is_array($select)) { $select = new Kwf_Component_Select($select); } $cacheId = $select->getHash(); $ret = self::_getIndirectChildComponentClasses($class, $select, $cacheId); r...
php
public static function getIndirectChildComponentClasses($class, $select = array()) { if (is_array($select)) { $select = new Kwf_Component_Select($select); } $cacheId = $select->getHash(); $ret = self::_getIndirectChildComponentClasses($class, $select, $cacheId); r...
[ "public", "static", "function", "getIndirectChildComponentClasses", "(", "$", "class", ",", "$", "select", "=", "array", "(", ")", ")", "{", "if", "(", "is_array", "(", "$", "select", ")", ")", "{", "$", "select", "=", "new", "Kwf_Component_Select", "(", ...
Returns indirect child component classes of a componentclass or a componentData @param string|Kwf_Component_Data if data inherited generators are returned as well @param array Optional filtering (string to get for one generator)
[ "Returns", "indirect", "child", "component", "classes", "of", "a", "componentclass", "or", "a", "componentData" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L200-L208
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getChildComponentClass
public static function getChildComponentClass($class, $generator, $componentKey = null) { $constraints = array( 'generator' => $generator, ); if ($componentKey) $constraints['componentKey'] = $componentKey; $classes = array_values(self::getChildComponentClasses($class, $c...
php
public static function getChildComponentClass($class, $generator, $componentKey = null) { $constraints = array( 'generator' => $generator, ); if ($componentKey) $constraints['componentKey'] = $componentKey; $classes = array_values(self::getChildComponentClasses($class, $c...
[ "public", "static", "function", "getChildComponentClass", "(", "$", "class", ",", "$", "generator", ",", "$", "componentKey", "=", "null", ")", "{", "$", "constraints", "=", "array", "(", "'generator'", "=>", "$", "generator", ",", ")", ";", "if", "(", "...
Returns a single child component class of a componentClass throws an exception if not found @param string componentClass @param string generator key @param string component key @param string
[ "Returns", "a", "single", "child", "component", "class", "of", "a", "componentClass" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L257-L272
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.hasChildComponentClass
public static function hasChildComponentClass($class, $generator, $componentKey = null) { $constraints = array( 'generator' => $generator, 'componentKey' => $componentKey ); $classes = self::getChildComponentClasses($class, $constraints); return count($classes...
php
public static function hasChildComponentClass($class, $generator, $componentKey = null) { $constraints = array( 'generator' => $generator, 'componentKey' => $componentKey ); $classes = self::getChildComponentClasses($class, $constraints); return count($classes...
[ "public", "static", "function", "hasChildComponentClass", "(", "$", "class", ",", "$", "generator", ",", "$", "componentKey", "=", "null", ")", "{", "$", "constraints", "=", "array", "(", "'generator'", "=>", "$", "generator", ",", "'componentKey'", "=>", "$...
Return if a child component class with a given generator key and componentKey exists if returnf false getChildComponentClass will give an exception. @param string componentClass @param string generator key @param string component key @param bool
[ "Return", "if", "a", "child", "component", "class", "with", "a", "given", "generator", "key", "and", "componentKey", "exists" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L284-L292
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract._getRow
protected function _getRow() { if (!isset($this->_row)) { $model = $this->getOwnModel(); if (!$model) return null; $dbId = $this->getData()->dbId; $sharedDataClass = self::getFlag($this->getData()->componentClass, 'sharedDataClass'); if ($sharedDat...
php
protected function _getRow() { if (!isset($this->_row)) { $model = $this->getOwnModel(); if (!$model) return null; $dbId = $this->getData()->dbId; $sharedDataClass = self::getFlag($this->getData()->componentClass, 'sharedDataClass'); if ($sharedDat...
[ "protected", "function", "_getRow", "(", ")", "{", "if", "(", "!", "isset", "(", "$", "this", "->", "_row", ")", ")", "{", "$", "model", "=", "$", "this", "->", "getOwnModel", "(", ")", ";", "if", "(", "!", "$", "model", ")", "return", "null", ...
Returns the row from the ownModel of this component @return Kwf_Model_Row_Abstract
[ "Returns", "the", "row", "from", "the", "ownModel", "of", "this", "component" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L307-L330
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getPdfWriter
public function getPdfWriter($pdf) { if (!isset($this->_pdfWriter)) { $class = Kwc_Admin::getComponentFile(get_class($this), 'Pdf', 'php', true); $this->_pdfWriter = new $class($this, $pdf); } return $this->_pdfWriter; }
php
public function getPdfWriter($pdf) { if (!isset($this->_pdfWriter)) { $class = Kwc_Admin::getComponentFile(get_class($this), 'Pdf', 'php', true); $this->_pdfWriter = new $class($this, $pdf); } return $this->_pdfWriter; }
[ "public", "function", "getPdfWriter", "(", "$", "pdf", ")", "{", "if", "(", "!", "isset", "(", "$", "this", "->", "_pdfWriter", ")", ")", "{", "$", "class", "=", "Kwc_Admin", "::", "getComponentFile", "(", "get_class", "(", "$", "this", ")", ",", "'P...
Returns the Pdf Writer object associated with this component.
[ "Returns", "the", "Pdf", "Writer", "object", "associated", "with", "this", "component", "." ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L347-L354
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getTemplateVars
public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer) { $ret = array(); $ret['placeholder'] = $this->_getPlaceholder(); $ret['rootElementClass'] = self::getRootElementClass($this); $ret['bemClass'] = $this->_getBemClass(''); $ret['data'] = $this->getData...
php
public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer) { $ret = array(); $ret['placeholder'] = $this->_getPlaceholder(); $ret['rootElementClass'] = self::getRootElementClass($this); $ret['bemClass'] = $this->_getBemClass(''); $ret['data'] = $this->getData...
[ "public", "function", "getTemplateVars", "(", "Kwf_Component_Renderer_Abstract", "$", "renderer", ")", "{", "$", "ret", "=", "array", "(", ")", ";", "$", "ret", "[", "'placeholder'", "]", "=", "$", "this", "->", "_getPlaceholder", "(", ")", ";", "$", "ret"...
Returns variables that can be used in Component.tpl @param e.g. for accessing recipient in Mail_Renderer @return array
[ "Returns", "variables", "that", "can", "be", "used", "in", "Component", ".", "tpl" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L361-L386
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getMasterTemplateVars
public function getMasterTemplateVars(Kwf_Component_Data $innerComponent, Kwf_Component_Renderer_Abstract $renderer) { $ret = array(); $ret['component'] = $innerComponent; $ret['data'] = $innerComponent; $ret['template'] = self::getMasterTemplateFile($this->getData()->componentClass)...
php
public function getMasterTemplateVars(Kwf_Component_Data $innerComponent, Kwf_Component_Renderer_Abstract $renderer) { $ret = array(); $ret['component'] = $innerComponent; $ret['data'] = $innerComponent; $ret['template'] = self::getMasterTemplateFile($this->getData()->componentClass)...
[ "public", "function", "getMasterTemplateVars", "(", "Kwf_Component_Data", "$", "innerComponent", ",", "Kwf_Component_Renderer_Abstract", "$", "renderer", ")", "{", "$", "ret", "=", "array", "(", ")", ";", "$", "ret", "[", "'component'", "]", "=", "$", "innerComp...
Returns variables that can be used in Master.tpl @param e.g. for accessing recipient in Mail_Renderer @return array
[ "Returns", "variables", "that", "can", "be", "used", "in", "Master", ".", "tpl" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L436-L468
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract._getPlaceholder
protected function _getPlaceholder($placeholder = null) { $ret = $this->_getSetting('placeholder'); if ($placeholder) { return $this->getData()->trlStaticExecute($ret[$placeholder]); } foreach ($ret as $k => $v) { $ret[$k] = $this->getData()->trlStaticExecute(...
php
protected function _getPlaceholder($placeholder = null) { $ret = $this->_getSetting('placeholder'); if ($placeholder) { return $this->getData()->trlStaticExecute($ret[$placeholder]); } foreach ($ret as $k => $v) { $ret[$k] = $this->getData()->trlStaticExecute(...
[ "protected", "function", "_getPlaceholder", "(", "$", "placeholder", "=", "null", ")", "{", "$", "ret", "=", "$", "this", "->", "_getSetting", "(", "'placeholder'", ")", ";", "if", "(", "$", "placeholder", ")", "{", "return", "$", "this", "->", "getData"...
Returns a placeholder text, placeholders are set in settings @return string
[ "Returns", "a", "placeholder", "text", "placeholders", "are", "set", "in", "settings" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L475-L485
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getRootElementClass
static public function getRootElementClass($component) { if (!is_string($component)) $component = $component->getData()->componentClass; $ret = ''; if (self::hasSetting($component, 'rootElementClass')) { $ret .= self::getSetting($component, 'rootElementClass').' '; } ...
php
static public function getRootElementClass($component) { if (!is_string($component)) $component = $component->getData()->componentClass; $ret = ''; if (self::hasSetting($component, 'rootElementClass')) { $ret .= self::getSetting($component, 'rootElementClass').' '; } ...
[ "static", "public", "function", "getRootElementClass", "(", "$", "component", ")", "{", "if", "(", "!", "is_string", "(", "$", "component", ")", ")", "$", "component", "=", "$", "component", "->", "getData", "(", ")", "->", "componentClass", ";", "$", "r...
Returns the processed rootElementClass used in various places for a component @param string|Kwf_Component_Data @return string
[ "Returns", "the", "processed", "rootElementClass", "used", "in", "various", "places", "for", "a", "component" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L529-L538
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getComponentClassesByParentClass
public static function getComponentClassesByParentClass($class) { if (!is_array($class)) $class = array($class); static $prefix; $cacheId = 'cclsbpc-'.implode('-', $class).'-'.Kwf_Component_Data_Root::getComponentClass(); $ret = Kwf_Cache_SimpleStatic::fetch($cacheId, $success); ...
php
public static function getComponentClassesByParentClass($class) { if (!is_array($class)) $class = array($class); static $prefix; $cacheId = 'cclsbpc-'.implode('-', $class).'-'.Kwf_Component_Data_Root::getComponentClass(); $ret = Kwf_Cache_SimpleStatic::fetch($cacheId, $success); ...
[ "public", "static", "function", "getComponentClassesByParentClass", "(", "$", "class", ")", "{", "if", "(", "!", "is_array", "(", "$", "class", ")", ")", "$", "class", "=", "array", "(", "$", "class", ")", ";", "static", "$", "prefix", ";", "$", "cache...
Returns componentClasses that match a given class in their inheritance chain Fast, as the result is static and will be cached @param string @return string[]
[ "Returns", "componentClasses", "that", "match", "a", "given", "class", "in", "their", "inheritance", "chain" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L548-L573
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getComponentClassByParentClass
public static function getComponentClassByParentClass($class) { $ret = self::getComponentClassesByParentClass($class); if (count($ret) != 1) { if (!$ret) { throw new Kwf_Exception("No Component with class '$class' found"); } throw new Kwf_Exception...
php
public static function getComponentClassByParentClass($class) { $ret = self::getComponentClassesByParentClass($class); if (count($ret) != 1) { if (!$ret) { throw new Kwf_Exception("No Component with class '$class' found"); } throw new Kwf_Exception...
[ "public", "static", "function", "getComponentClassByParentClass", "(", "$", "class", ")", "{", "$", "ret", "=", "self", "::", "getComponentClassesByParentClass", "(", "$", "class", ")", ";", "if", "(", "count", "(", "$", "ret", ")", "!=", "1", ")", "{", ...
Returns a componentClass that match a given class in their inheritance chain Fast, as the result is static and will be cached will throw an error if multiple are found @param string @return string
[ "Returns", "a", "componentClass", "that", "match", "a", "given", "class", "in", "their", "inheritance", "chain" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L585-L595
koala-framework/koala-framework
Kwc/Abstract.php
Kwc_Abstract.getActiveViewPlugins
public function getActiveViewPlugins() { $ret = $this->_getSetting('plugins'); $d = $this->getData(); if ($d->isPage) { while ($d) { foreach (Kwc_Abstract::getSetting($d->componentClass, 'pluginsInherit') as $i) { if (!in_array($i, $ret)) $ret[...
php
public function getActiveViewPlugins() { $ret = $this->_getSetting('plugins'); $d = $this->getData(); if ($d->isPage) { while ($d) { foreach (Kwc_Abstract::getSetting($d->componentClass, 'pluginsInherit') as $i) { if (!in_array($i, $ret)) $ret[...
[ "public", "function", "getActiveViewPlugins", "(", ")", "{", "$", "ret", "=", "$", "this", "->", "_getSetting", "(", "'plugins'", ")", ";", "$", "d", "=", "$", "this", "->", "getData", "(", ")", ";", "if", "(", "$", "d", "->", "isPage", ")", "{", ...
Returns the view plugins that should be used for this component instance Must only return plugins defined in 'plugins' setting. Can also return non-view plugins, those will silently be ignored. Default implementation returns 'plugins' setting.
[ "Returns", "the", "view", "plugins", "that", "should", "be", "used", "for", "this", "component", "instance" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwc/Abstract.php#L644-L657
koala-framework/koala-framework
Kwf/Util/Build/Types/Assets.php
Kwf_Util_Build_Types_Assets._build
protected function _build($options) { $cmd = 'NODE_PATH=vendor/koala-framework/koala-framework/node_modules_build ./vendor/bin/node node_modules/.bin/webpack --colors'; if (!isset($_SERVER['NO_PROGRESS'])) $cmd .= ' --progress'; passthru($cmd, $retVal); if ($retVal) { th...
php
protected function _build($options) { $cmd = 'NODE_PATH=vendor/koala-framework/koala-framework/node_modules_build ./vendor/bin/node node_modules/.bin/webpack --colors'; if (!isset($_SERVER['NO_PROGRESS'])) $cmd .= ' --progress'; passthru($cmd, $retVal); if ($retVal) { th...
[ "protected", "function", "_build", "(", "$", "options", ")", "{", "$", "cmd", "=", "'NODE_PATH=vendor/koala-framework/koala-framework/node_modules_build ./vendor/bin/node node_modules/.bin/webpack --colors'", ";", "if", "(", "!", "isset", "(", "$", "_SERVER", "[", "'NO_PRO...
/* private static $_mimeTypeByExtension = array( 'js' => 'text/javascript', 'defer.js' => 'text/javascript; defer', 'css' => 'text/css', ); public function getAllPackages() { $packages = array(); foreach (Kwf_Config::getValueArray('assets.packageFactories') as $i) { if (!$i) continue; if (!is_instance_of($i, 'Kwf_Asse...
[ "/", "*", "private", "static", "$_mimeTypeByExtension", "=", "array", "(", "js", "=", ">", "text", "/", "javascript", "defer", ".", "js", "=", ">", "text", "/", "javascript", ";", "defer", "css", "=", ">", "text", "/", "css", ")", ";" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Build/Types/Assets.php#L73-L248
koala-framework/koala-framework
Kwf/Util/Component.php
Kwf_Util_Component.duplicate
public static function duplicate(Kwf_Component_Data $source, Kwf_Component_Data $parentTarget, Zend_ProgressBar $progressBar = null) { $new = $source->generator->duplicateChild($source, $parentTarget, $progressBar); if (!$new) { throw new Kwf_Exception("Failed duplicating '$source->comp...
php
public static function duplicate(Kwf_Component_Data $source, Kwf_Component_Data $parentTarget, Zend_ProgressBar $progressBar = null) { $new = $source->generator->duplicateChild($source, $parentTarget, $progressBar); if (!$new) { throw new Kwf_Exception("Failed duplicating '$source->comp...
[ "public", "static", "function", "duplicate", "(", "Kwf_Component_Data", "$", "source", ",", "Kwf_Component_Data", "$", "parentTarget", ",", "Zend_ProgressBar", "$", "progressBar", "=", "null", ")", "{", "$", "new", "=", "$", "source", "->", "generator", "->", ...
Recursively duplicate components You need to call afterDuplicate afterwards!
[ "Recursively", "duplicate", "components" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Component.php#L47-L64
koala-framework/koala-framework
Kwf/Util/Component.php
Kwf_Util_Component.afterDuplicate
public static function afterDuplicate(Kwf_Component_Data $rootSource, Kwf_Component_Data $rootTarget) { foreach (Kwf_Component_Abstract::getComponentClasses() as $c) { $admin = Kwf_Component_Abstract_Admin::getInstance($c); $admin->afterDuplicate($rootSource, $rootTarget); } ...
php
public static function afterDuplicate(Kwf_Component_Data $rootSource, Kwf_Component_Data $rootTarget) { foreach (Kwf_Component_Abstract::getComponentClasses() as $c) { $admin = Kwf_Component_Abstract_Admin::getInstance($c); $admin->afterDuplicate($rootSource, $rootTarget); } ...
[ "public", "static", "function", "afterDuplicate", "(", "Kwf_Component_Data", "$", "rootSource", ",", "Kwf_Component_Data", "$", "rootTarget", ")", "{", "foreach", "(", "Kwf_Component_Abstract", "::", "getComponentClasses", "(", ")", "as", "$", "c", ")", "{", "$", ...
Needs to be called after (multiple) duplicate() calls with a common root
[ "Needs", "to", "be", "called", "after", "(", "multiple", ")", "duplicate", "()", "calls", "with", "a", "common", "root" ]
train
https://github.com/koala-framework/koala-framework/blob/2131b9b10b6c368ea02ad448d5f8a4deef0fe971/Kwf/Util/Component.php#L69-L75