Short description of method makeEMAUri

@access public
@author Jehan Bihin, <jehan.bihin@tudor.lu>
@param string $ext
@param string $mod
@param string $act
@return string
199031
public function makeEMAUri($ext, $mod = null, $act = null)
    {
        $returnValue = (string) '';
        
        $returnValue = self::FUNCACL_NS . '#';
        if (! is_null($act)) {
            $type = 'a';
        } else {
            if (! is_null($mod)) {
                $type = 'm';
            } else {
                $type = 'e';
            }
        }
        $returnValue .= $type . '_' . $ext;
        if (! is_null($mod)) {
            $returnValue .= '_' . $mod;
        }
        if (! is_null($act)) {
            $returnValue .= '_' . $act;
        }
        return (string) $returnValue;
    }
234926
public static function script($attr, $cont = null)
    {
        if (is_string($attr)) {
            $attr = array('src' => $attr);
        }
        if ($cont) {
            if (self::$doctype == 'xhtml')
                $cont = "\n/* <![CDATA[ */\n" . $cont . "\n/* ]]> */\n";
            else
                $cont = "\n" . $cont . "\n";
        }

        return self::tag('script', $attr + array('type' => 'text/javascript', 'nl' => true),
            $cont, array_merge(self::$common_attrib, array('src','type','charset')));
    }
356896
protected function ext($name, $ext)
    {
        // Obtain Info:
        
        $info = pathinfo($name);
        
        // Check Extension:
        
        if (!isset($info['extension']) || $info['extension'] !== $ext) {
            $name = sprintf('%s.%s', $name, $ext);
        }
        
        // Answer Name:
        
        return $name;
    }
225155
function assemble($params = null)
    {
        return new Uri();


        ## merge params:
        $p = clone $this->params();
        if ($params) \Poirot\Router\mergeParams($p, $params);
        
        $host = \Poirot\Std\Lexer\buildStringFromParsed(
            \Poirot\Std\Lexer\parseCriteria($this->getCriteria())
            , \Poirot\Std\cast($p)->toArray()
        );

        $uri  = new Uri();
        $purl = parse_url($host);
        if (isset($purl['port'])) {
            $uri = $uri->withPort($purl['port']);
            $host = str_replace(':'.$purl['port'], '', $host);
        }

        return $uri->withHost($host);
    }
216559
public function getAdapterByExt($ext)
    {
        if (null === $adapter = $this->determineWhichAdapterToUse('.'.$ext)) {
            throw new RendererException("Unable to find adapter for '.$ext'.", RendererException::SCRIPTFILE_ERROR);
        }

        return $adapter;
    }
295866
public function mod( $expression1, $expression2 )
    {
        $expression1 = $this->getIdentifier( $expression1 );
        $expression2 = $this->getIdentifier( $expression2 );
        return "MOD( {$expression1}, {$expression2} )";
    }
671632
public function fileExt($ext) {
        $this->check_role = 'fileExt';
        if (is_string($ext)) {
            $ext = explode(',', $ext);
        }
        $this->rule = implode(',', $ext);
        if (!$this->value) {
            $result = false;
        } else if ($this->value instanceof File) {
            $result = in_array(strtolower($this->value->ext), $ext);
        } else {
            $x = explode(".", $this->value);
            $result = in_array(strtolower($x[ count($x) - 1 ]), $ext);
        }
        $this->checkResult($result);
    }
300526
static function make( $mime, $param = null, $paramValue = null ) {
		if ( null === $param || null === $paramValue ) {
			return $mime;
		}
		return "$mime;$param=$paramValue";
	}
1108179
final public function url($module, $controller = null, $action = null, array $params = array(), $hash = null) {
        $module = ucfirst(Util::hyphenToCamel($module));
        $moduleOptions = engineGet('config', 'modules', $module, false);
        $module = (isset($moduleOptions['alias'])) ? $moduleOptions['alias'] : $module;

        $return = Util::camelToHyphen($module);
        if ($controller)
            $return .= '/' . Util::camelToHyphen($controller);
        if ($action)
            $return .= '/' . Util::camelToHyphen($action);
        if (!empty($params))
            $return .= str_replace('//', '/' . urlencode(' ') . '/', '/' . join('/', $this->encodeParams($params)));
        if ($hash)
            $return .= '#' . $hash;

        return engineGet('serverPath') . $return;
    }
801866
public function createFile($ext, $suf = null, $pre = null) {
		$this->ext = $ext;
		if(!empty($pre)) {
			$this->pre = $pre;
		}
		if(!empty($suf)) {
			$this->suf = $suf;
		}

		return [
			'tmp' => $this->getTmp(),
			'src' => $this->getSrc(),
			'name' => $this->getPath() . DIRECTORY_SEPARATOR . $this->getName(),
		];
	}
590673
protected static function _createUriString($scheme, $authority, $path, $query, $fragment)
    {
        $uri = '';

        if (! empty($scheme)) {
            $uri .= sprintf('%s://', $scheme);
        }

        if (! empty($authority)) {
            $uri .= $authority;
        }

        if ($path) {
            if (empty($path) || '/' !== substr($path, 0, 1)) {
                $path = '/' . $path;
            }

            $uri .= $path;
        }

        if ($query) {
            $uri .= sprintf('?%s', $query);
        }

        if ($fragment) {
            $uri .= sprintf('#%s', $fragment);
        }

        return $uri;
    }
70478
function makeModule() {
    return {
      module: {
        rules: [
          esl.rule,
          cssl.rule,
          htmll.rule,
          //jsonl.rule
        ] //.map(excludeNodeModulesDir),
      },
      resolve: {
        extensions: defaultExts.concat(
          esl.exts,
          cssl.exts,
          htmll.exts
        )
      }
    }
  }
1108403
public function acceptsMimeEncoding($ext)
    {
        if ($this->getAllowedMimeEncodings() && !in_array($ext, $this->getAllowedMimeEncodings())) {
            return false;
        }

        if ($this->getRejectedMimeEncodings() && in_array($ext, $this->getRejectedMimeEncodings())) {
            return false;
        }

        return true;
    }
677438
public function actionResolver($action)
    {
        if(is_string($action)) {
            $this->setFunctionName(Str::camel($action));
        } elseif (is_callable($action)) {
            $this->setCallback($action);
        } else {
            $this->setData($action);
        }

        return $this;
    }
852045
public function createAction(Request $request, $type = 0)
    {
        /** @var ContentManager $manager */
        $manager = $this->get('opifer.content.content_manager');

        if ($type) {
            $contentType = $this->get('opifer.content.content_type_manager')->getRepository()->find($type);
            $content = $this->get('opifer.eav.eav_manager')->initializeEntity($contentType->getSchema());
            $content->setContentType($contentType);
        } else {
            $content = $manager->initialize();
        }

        $form = $this->createForm(LayoutType::class, $content);
        $form->handleRequest($request);

        if ($form->isValid()) {
            //setSlug because slugListener will create one based on title
            $content->setSlug(sha1(date('y-m-d h:i:s')));
            $content->setAlias(sha1(date('y-m-d h:i:s')));

            $manager->save($content);

            return $this->redirectToRoute('opifer_content_contenteditor_design', [
                'owner' => 'content',
                'ownerId' => $content->getId(),
            ]);
        }

        return $this->render($this->getParameter('opifer_content.content_new_view'), [
            'form' => $form->createView(),
        ]);
    }
145657
function decodeURIComponentSafe(uri, mod) {
    var decodedURI = '';
    var i = 0;
    var length, arr, tempDecodedURI;

    mod = !!(mod);
    arr = uri.split(/(%(?:d0|d1)%.{2})/);

    for (length = arr.length; i < length; i += 1) {
        try {
            tempDecodedURI = decodeURIComponent(arr[i]);
        } catch (e) {
            tempDecodedURI = mod ? arr[i].replace(/%(?!\d+)/g, '%25') : arr[i];
        }

        decodedURI += tempDecodedURI;
    }

    return decodedURI;
}
113312
public static function make($uri, $params = [], $queryDelimeter = '?')
    {
        $uri .= (strstr($uri, $queryDelimeter) === false) ? $queryDelimeter : '&';

        return $uri.http_build_query($params);
    }