當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Twig_Node::__construct方法代碼示例

本文整理匯總了PHP中Twig_Node::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Twig_Node::__construct方法的具體用法?PHP Twig_Node::__construct怎麽用?PHP Twig_Node::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Twig_Node的用法示例。


在下文中一共展示了Twig_Node::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($manifest, $config, $files, $line, $tag = null)
 {
     parent::__construct(array(), array(), $line, $tag);
     $this->manifest = $manifest;
     $this->config = $config;
     $this->files = $files;
 }
開發者ID:99designs,項目名稱:silex-assets,代碼行數:7,代碼來源:RequireJsNode.php

示例2: __construct

 public function __construct(Twig_Node_Expression $expr, $sandboxed, $variables, $lineno, $tag = null)
 {
     parent::__construct($lineno, $tag);
     $this->expr = $expr;
     $this->sandboxed = $sandboxed;
     $this->variables = $variables;
 }
開發者ID:te-koyama,項目名稱:openpne,代碼行數:7,代碼來源:Include.php

示例3: __construct

 public function __construct($count, Twig_NodeList $body, $plural, $lineno, $tag = null)
 {
     parent::__construct($lineno, $tag);
     $this->count = $count;
     $this->body = $body;
     $this->plural = $plural;
 }
開發者ID:skoop,項目名稱:MediTerra,代碼行數:7,代碼來源:Trans.php

示例4: __construct

	public function __construct($name, $imitates, $settings, $lineNo)
	{
		parent::__construct(array(), array(), $lineNo);
		$this->name = $name;
		$this->imitates = $imitates;
		$this->settings = $settings;
	}
開發者ID:hungnv0789,項目名稱:vhtm,代碼行數:7,代碼來源:Panel.php

示例5: __construct

 public function __construct(Context $context, $type, $resource, $lineno, $tag)
 {
     parent::__construct([], [], $lineno, $tag);
     $this->type = $type;
     $this->resource = $resource;
     $this->context = $context;
 }
開發者ID:jawngee,項目名稱:Stem,代碼行數:7,代碼來源:EnqueueNode.php

示例6: __construct

	public function __construct($name, $vars, $lineNo)
	{
		parent::__construct(array(), array(), $lineNo);

		$this->name = $name;
		$this->vars = $vars;
	}
開發者ID:hungnv0789,項目名稱:vhtm,代碼行數:7,代碼來源:Lang.php

示例7: __construct

 /**
  * Constructor
  * 
  * @param string $lineno 
  * @param string $method 
  * @param string $files 
  * @param string $options 
  * @author Jonathan Geiger
  */
 public function __construct($lineno, $method, $files, $options = NULL)
 {
     parent::__construct($lineno);
     $this->method = $method;
     $this->files = $files;
     $this->options = $options;
 }
開發者ID:phred,項目名稱:kohana-twig,代碼行數:16,代碼來源:node.php

示例8: __construct

 public function __construct($isMultitarget, $names, $values, $lineno, $tag = null)
 {
     parent::__construct($lineno, $tag);
     $this->isMultitarget = $isMultitarget;
     $this->names = $names;
     $this->values = $values;
 }
開發者ID:jstanden,項目名稱:devblocks,代碼行數:7,代碼來源:Set.php

示例9: __construct

 public function __construct(array $usedFilters, array $usedTags, array $usedFunctions)
 {
     $this->usedFilters = $usedFilters;
     $this->usedTags = $usedTags;
     $this->usedFunctions = $usedFunctions;
     parent::__construct();
 }
開發者ID:PieterSwitten,項目名稱:webandmobile,代碼行數:7,代碼來源:CheckSecurity.php

示例10: __construct

 public function __construct($name, Twig_NodeList $body, $lineno, $parent = null, $tag = null)
 {
     parent::__construct($lineno, $tag);
     $this->name = $name;
     $this->body = $body;
     $this->parent = $parent;
 }
開發者ID:skoop,項目名稱:MediTerra,代碼行數:7,代碼來源:Block.php

示例11: __construct

 public function __construct(AssetInterface $asset, \Twig_NodeInterface $body, $attributes, $lineno = 0, $tag = null)
 {
     $nodes = array('body' => $body);
     $attributes['asset'] = $asset;
     $attributes['var_name'] = 'asset_url';
     parent::__construct($nodes, $attributes, $lineno, $tag);
 }
開發者ID:hidekscorporation,項目名稱:hideksframework2,代碼行數:7,代碼來源:AsseticNode.php

示例12: __construct

 /**
  * @param array               $entityType
  * @param \Twig_NodeInterface $ids
  * @param string              $viewMode
  * @param null                $langcode
  * @param null                $page
  * @param int                 $lineno
  * @param null                $tag
  */
 public function __construct($entityType, \Twig_NodeInterface $ids, $viewMode = 'full', $langcode = null, $page = null, $lineno = 0, $tag = null)
 {
     $nodes = array();
     // Load the entities by type and an array of IDs.
     // Assemble arguments for entity_load().
     $argumentsNodes = array();
     $argumentsNodes[] = $entityTypeNode = new \Twig_Node_Expression_Constant($entityType, $lineno);
     $argumentsNodes[] = $ids;
     // Construct call to entity_load() and capture the result in temporary
     // variable named `entities`.
     $valuesNode = new \Twig_Node(array(new \Twig_Node_Expression_Function('entity_load', new \Twig_Node($argumentsNodes), $lineno)));
     $entitiesNamesNode = new \Twig_Node(array(new \Twig_Node_Expression_TempName('entities', $lineno)));
     $nodes[] = new \Twig_Node_Set(false, $entitiesNamesNode, $valuesNode, $lineno);
     // Assemble arguments for entity_view()
     $argumentsNodes = array();
     $argumentsNodes[] = $entityTypeNode;
     $argumentsNodes[] = $entitiesNamesNode;
     $argumentsNodes[] = new \Twig_Node_Expression_Constant($viewMode, $lineno);
     $argumentsNodes[] = new \Twig_Node_Expression_Constant($langcode, $lineno);
     $argumentsNodes[] = new \Twig_Node_Expression_Constant($page, $lineno);
     // Construct call to entity_view() and capture the result in
     // temporary variable named `output`.
     $valuesNode = new \Twig_Node(array(new \Twig_Node_Expression_Function('entity_view', new \Twig_Node($argumentsNodes), $lineno)));
     $outputNamesNode = new \Twig_Node(array(new \Twig_Node_Expression_TempName('output', $lineno)));
     $nodes[] = new \Twig_Node_Set(false, $outputNamesNode, $valuesNode, $lineno);
     // Assemble arguments for drupal_render().
     $argumentsNodes = array();
     $argumentsNodes[] = $outputNamesNode;
     // Construct call to drupal_render() and echo the result.
     $expr = new \Twig_Node_Expression_Function('drupal_render', new \Twig_Node($argumentsNodes), $lineno);
     $nodes[] = new \Twig_Node_Print($expr, $lineno);
     // Pass the original arguments up.
     $attributes = array('entity_type' => $entityType, 'view_mode' => $viewMode, 'langcode' => $langcode, 'page' => $page);
     parent::__construct($nodes, $attributes, $lineno, $tag);
 }
開發者ID:bangpound,項目名稱:drupal-bridge,代碼行數:44,代碼來源:EntityViewNode.php

示例13: __construct

 public function __construct($isMultitarget, $names, Twig_Node_Expression $value, $lineno, $tag = null)
 {
     parent::__construct($lineno, $tag);
     $this->isMultitarget = $isMultitarget;
     $this->names = $names;
     $this->value = $value;
 }
開發者ID:phishbot,項目名稱:Wall-of-LOL,代碼行數:7,代碼來源:Set.php

示例14: __construct

 /**
  * @param integer $lineno
  * @param string $tag
  */
 public function __construct(\Twig_Node $variable, \Twig_Node $collectionType, \Twig_Node_Expression_Filter $collectionFilters = null, \Twig_Node_Expression $parameters = null, \Twig_Node_Expression $ifExpression = null, \Twig_NodeInterface $else = null, \Twig_NodeInterface $body, $lineno, $tag = null)
 {
     $body = new \Twig_Node(array($body, $this->loop = new \Twig_Node_ForLoop($lineno, $tag)));
     if (null !== $ifExpression) {
         $body = new \Twig_Node_If(new \Twig_Node(array($ifExpression, $body)), null, $lineno, $tag);
     }
     parent::__construct(array('variable' => $variable, 'collectionType' => $collectionType, 'collectionFilters' => $collectionFilters, 'parameters' => $parameters, 'ifExpression' => $ifExpression, 'else' => $else, 'body' => $body), array('with_loop' => true, 'ifexpr' => null !== $ifExpression), $lineno, $tag);
 }
開發者ID:ahilles107,項目名稱:templates-system,代碼行數:12,代碼來源:GimmeListNode.php

示例15: __construct

 public function __construct($name, $method, \Twig_NodeList $arguments, $echo, $lineno, $tag = null)
 {
     parent::__construct($lineno, $tag);
     $this->name = $name;
     $this->method = $method;
     $this->arguments = $arguments;
     $this->echo = $echo;
 }
開發者ID:poulikov,項目名稱:symfony,代碼行數:8,代碼來源:HelperNode.php


注:本文中的Twig_Node::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。