Přehled systémových překladů
@return object
517938
protected function createComponentLangSystemModal() : object
    {
        $control = $this->ILang_SystemModal->create();

        $control->onSave[] = function () use ($control)
        {
            $control->redrawControl('langSystems');
        };

        $control->onPaginate[] = function () use ($control)
        {
            $control->redrawControl('paginator');
            $control->redrawControl('pagination');
            $control->redrawControl('langSystems');
        };

        return $control;
    }
200353
public function getPrevious()
    {
        return is_null($this->previous) ? null : new ViewFile($this->project, $this->previous);
    }
987146
public function currentAction()
    {
        $objectId = !empty($this->getPost()->objectId) ? $this->getPost()->objectId : null;
        switch ($this->getPost()->fileTypes) {
            case 'images' :
                //zapytanie o obrazki
                $query = CmsFileQuery::imagesByObject($this->getPost()->object, $objectId);
                break;
            case 'notImages' :
                //wszystkie pliki bez obrazków
                $query = CmsFileQuery::notImagesByObject($this->getPost()->object, $objectId);
                break;
            default :
                //domyślne zapytanie o wszystkie pliki
                $query = CmsFileQuery::byObject($this->getPost()->object, $objectId);
        }

        $records = $query->find();
        foreach ($records as $record) {
            $record->data = $record->data->toArray();
        }

        //zwrot json'a z plikami
        return json_encode([
            'result' => 'OK',
            'files' => $records->toArray()
        ]);
    }
522528
public function preDelete()
    {
        $attId = $this->id();
        $joinProto = $this->modelFactory()->get(Join::class);
        $loader = $this->collectionLoader();
        $loader->setModel($joinProto);

        $collection = $loader->addFilter('attachment_id', $attId)->load();

        foreach ($collection as $obj) {
            $obj->delete();
        }

        return parent::preDelete();
    }
1296444
public function processar()
    {
        if ($this->isProcessado()) {
            return $this;
        }

        if (method_exists($this, 'init')) {
            call_user_func([$this, 'init']);
        }

        foreach ($this->file as $linha) {
            $inicio = $this->rem(1, 1, $linha);

            if ($inicio == '0') {
                $this->processarHeader($linha);
            } elseif ($inicio == '9') {
                $this->processarTrailer($linha);
            } else {
                $this->incrementDetalhe();
                if ($this->processarDetalhe($linha) === false) {
                    unset($this->detalhe[$this->increment]);
                    $this->increment--;
                }
            }
        }
        if (method_exists($this, 'finalize')) {
            call_user_func([$this, 'finalize']);
        }

        return $this->setProcessado();
    }
905505
function current() {
        $statement = parent::current();
        
        $triple = new core_kernel_classes_Triple();
        $triple->modelid = $statement["modelid"];
        $triple->subject = $statement["subject"];
        $triple->predicate = $statement["predicate"];
        $triple->object = $statement["object"];
        $triple->id = $statement["id"];
        $triple->lg = $statement["l_language"];
        $triple->author = $statement["author"];
        return $triple;
    }
112861
public function getSystem(): Adapter\System
    {
        if ($this->system === null) {
            $this->system = new Adapter\System($this);
        }

        return $this->system;
    }
37941
public function getSystemPropertiesAsArray()
    {
        $systemProperties = array();
        if (is_array($this->getSystemProperties())) {
            foreach ($this->getSystemProperties() as $systemProperty) {
                $systemProperties[$systemProperty->getName()] = $systemProperty->castToType();
            }
        }
        return $systemProperties;
    }
525302
public function processar()
    {
        if ($this->isProcessado()) {
            return $this;
        }

        if (method_exists($this, 'init')) {
            call_user_func([$this, 'init']);
        }

        foreach ($this->file as $linha) {
            $recordType = $this->rem(8, 8, $linha);

            if ($recordType == '0') {
                $this->processarHeader($linha);
            } elseif ($recordType == '1') {
                $this->processarHeaderLote($linha);
            } elseif ($recordType == '3') {
                if ($this->getSegmentType($linha) == 'T') {
                    $this->incrementDetalhe();
                }

                if ($this->processarDetalhe($linha) === false) {
                    unset($this->detalhe[$this->increment]);
                    $this->increment--;
                }
            } elseif ($recordType == '5') {
                $this->processarTrailerLote($linha);
            } elseif ($recordType == '9') {
                $this->processarTrailer($linha);
            }
        }

        if (method_exists($this, 'finalize')) {
            call_user_func([$this, 'finalize']);
        }

        return $this->setProcessado();
    }
1069130
public function returnFullDataSystem() {

        $aStorage = $this->getSNMP()->realWalk1d(self::OID_SYSTEM);

        $aReturn = Array();
        $aReturn['uptime'] = $aStorage[self::OID_SYSTEM_UPTIME][0] / 100;
        $aReturn['num_users'] = $aStorage[self::OID_SYSTEM_NUM_USERS][0];
        $aReturn['processes'] = $aStorage[self::OID_SYSTEM_PROCESSES][0];
        $aReturn['max_processes'] = $aStorage[self::OID_SYSTEM_MAX_PROCESSES][0];

        return $aReturn;
    }
1311218
public function getPreprocessor(): MiddlewareInterface
    {
        if (is_null($this->preProcessor)) {
            if (method_exists($this, 'resolve')) {
                $this->setPreprocessor($this->resolve(Middleware::class));
            } else {
                $this->setPreprocessor(new Middleware());
            }
        }

        return $this->preProcessor;
    }
702508
public function setupDrupalFilesystem()
    {
        $this->taskFilesystemStack()
            ->chmod($this->sitesPath, 0775, 0000, true)
            ->mkdir("{$this->sitesPath}/default/files", 0775, true)
            ->run();

        if ($this->getProjectVersion() >= 8) {
            $install_path = $this->getInstallPath();

            $this->taskFilesystemStack()
                ->mkdir("{$install_path}/profiles/custom", 0775, true)
                ->mkdir("{$install_path}/modules/custom", 0775, true)
                ->mkdir("{$install_path}/modules/contrib", 0775, true)
                ->run();
        }

        return $this;
    }
1104055
public function preRun()
    {
        $root_path = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..').DIRECTORY_SEPARATOR;
        
    	$this->options = array (
			'db_driver'	=> 'mysql',
            'db_host' => 'localhost',
            'db_name' => null,
            'db_pass' => '',
            'db_user' => 'tao',
            'install_sent'	=> '1',
            'module_host'	=> 'tao.local',
            'module_lang'	=> 'en-US', 
            'module_mode'	=> 'debug',
            'module_name'	=> 'mytao',
            'module_namespace' => '', 
            'module_url'	=> '',
            'submit'	=> 'Install',
            'user_email'	=> '', 
            'user_firstname'	=> '',
            'user_lastname'	=> '',
            'user_login'	=> '',
            'user_pass'	=> '', 
            'import_local' => true,
            'instance_name' => null,
            'extensions' => null, 
            'timezone'   => date_default_timezone_get(),
            'file_path' => $root_path . 'data' . DIRECTORY_SEPARATOR,
            'operated_by_name' => null,
            'operated_by_email' => null,
            'extra_persistences' => []
		);
    	
    	$this->options = array_merge($this->options, $this->parameters);
    	
    	// Feature #1789: default db_name is module_name if not specified.
        $this->options['db_name'] = (empty($this->options['db_name']) ? $this->options['module_name'] : $this->options['db_name']);
        
        // If no instance_name given, it takes the value of module_name.
        $this->options['instance_name'] = (empty($this->options['instance_name']) ? $this->options['module_name'] : $this->options['instance_name']);
        
    	// user password treatment
    	$this->options["user_pass1"] = $this->options['user_pass'];
    	// module namespace generation
    	if (empty ($this->options["module_namespace"])){
    		$this->options['module_namespace'] = 'http://'.$this->options['module_host'].'/'.$this->options['module_name'].'.rdf';
    	}
    	
    	if (empty ($this->options['module_url'])){
    		$this->options['module_url'] = 'http://' . $this->options['module_host'];
    	}
    	
        $this->logDebug('Install was started with the given parameters: ' . PHP_EOL . var_export($this->options, true));
    }
1170670
public static function GetSystemTmpDir () {
		if (self::$tmpDir === NULL) {
			$tmpDir = sys_get_temp_dir();
			if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
				// Windows:
				$sysRoot = getenv('SystemRoot');
				// do not store anything directly in C:\Windows, use C\windows\Temp instead
				if (!$tmpDir || $tmpDir === $sysRoot) {
					$tmpDir = !empty($_SERVER['TEMP']) 
						? $_SERVER['TEMP']
						: (!empty($_SERVER['TMP'])
							? $_SERVER['TMP']
							: (!empty($_SERVER['WINDIR'])
								? $_SERVER['WINDIR'] . '/Temp'
								: $sysRoot . '/Temp'
							)
						);
				}
				$tmpDir = str_replace('\\', '/', $tmpDir);
			} else if (!$tmpDir) {
				// Other systems
				$tmpDir = !empty($_SERVER['TMPDIR']) 
					? $_SERVER['TMPDIR']
					: (!empty($_SERVER['TMP'])
						? $_SERVER['TMP']
						: (!empty(ini_get('sys_temp_dir'))
							? ini_get('sys_temp_dir')
							: '/tmp'
						)
					);
			}
			self::$tmpDir = $tmpDir;
		}
		return self::$tmpDir;
	}
1297678
public static function & GetSystem () {
		$app = self::$app ?: self::$app = & \MvcCore\Application::GetInstance();
		$systemConfigClass = $app->GetConfigClass();
		$appRootRelativePath = $systemConfigClass::GetSystemConfigPath();
		if (!isset(self::$configsCache[$appRootRelativePath])) 
			self::$configsCache[$appRootRelativePath] = & self::getConfigInstance(
				$appRootRelativePath, TRUE
			);
		return self::$configsCache[$appRootRelativePath];
	}
817037
public static function systemUser()
    {
        $user = self::findOne([self::tableName().'.'.'email' => self::SYSTEM_EMAIL], false);
        if (empty($user)) {
            $superGroup = Group::find()->disableAccessCheck()->where(['system' => 'super_administrators'])->one();
            if (!$superGroup) {
                return false;
            }
            $userClass = self::className();
            $user = new $userClass();
            $user->scenario = 'creation';
            $user->first_name = 'System';
            $user->last_name = 'User';
            $user->email = self::SYSTEM_EMAIL;
            $user->status = static::STATUS_INACTIVE;
            $user->password =  Yii::$app->security->generateRandomKey();
            $user->relationModels = [['parent_object_id' => $superGroup->primaryKey]];
            if (!$user->save()) {
                \d($user->email);
                \d($user->errors);
                throw new Exception("Unable to save system user!");
            }
        }

        return $user;
    }
1133276
public function envResume()
    {
        $this->executeCommandHook(__FUNCTION__, 'before');
        $this->engineInstance()->start();
        $this->executeCommandHook(__FUNCTION__, 'after');

        return $this;
    }