当前位置: 首页>>代码示例>>PHP>>正文


PHP self::process方法代码示例

本文整理汇总了PHP中self::process方法的典型用法代码示例。如果您正苦于以下问题:PHP self::process方法的具体用法?PHP self::process怎么用?PHP self::process使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在self的用法示例。


在下文中一共展示了self::process方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: processStatic

 public static function processStatic(Ajde_Template_Parser $parser, $attributes)
 {
     $instance = new self($parser, $attributes);
     $t = new stdClass();
     // Force unique object hash, see http://www.php.net/manual/es/function.spl-object-hash.php#76220
     return $instance->process();
 }
开发者ID:nabble,项目名称:ajde,代码行数:7,代码来源:Form.php

示例2: forge

 /**
  * Create an instance and process data
  * @param  object $scope Scope
  * @param  \Carbon\Carbon $date Date
  * @param  int $period Period
  * @return self Line chart instance
  */
 public static function forge($scope, $date, $period)
 {
     $chart = new self($scope, $date);
     $chart->setPeriod($period);
     $chart->process();
     return $chart;
 }
开发者ID:simondubois,项目名称:budget,代码行数:14,代码来源:LineChart.php

示例3: instance

 public static function instance()
 {
     if (!is_404()) {
         return;
     }
     $image_creator = new self();
     $image_creator->process();
 }
开发者ID:brutalenemy666,项目名称:carbon-image-library,代码行数:8,代码来源:Create_Image_WP_Media.php

示例4: quickLogin

 public function quickLogin($idNumber, $password, $rememberMe = true)
 {
     $form = new self();
     $form->idNumber = $idNumber;
     $form->password = $password;
     $form->rememberMe = $rememberMe;
     return $form->process();
 }
开发者ID:jayrulez,项目名称:kcconline,代码行数:8,代码来源:LoginForm.php

示例5: import

 public static function import($uri)
 {
     $feed = new self();
     $zend_feed = \Zend_Feed::import($uri);
     $feed->feed = $zend_feed;
     $feed->encoding = $feed->feed->getDOM()->ownerDocument->encoding;
     $feed->process();
     return $feed;
 }
开发者ID:AholibamaSI,项目名称:plymouth-webapp,代码行数:9,代码来源:Feed.php

示例6: process

 /**
  * Processa i dati
  * @param type $data
  */
 public function process($data)
 {
     foreach ($data as $nodeName => $nodeValue) {
         // $nodeValue è sempre un oggetto
         if ($nodeValue->count() > 0 || count($nodeValue->attributes()) > 0) {
             // se ha figli o ha attributi, allora lo considero come oggetto da parsare
             // se ha attributi li metto in $_attributes
             $clone = new self();
             $clone->process($nodeValue);
             foreach ($nodeValue->attributes() as $attrName => $attrValue) {
                 $clone->setAttribute($attrName, $attrValue);
             }
             $this->{$nodeName} = $clone;
         } else {
             // altrimenti è una stringa
             $this->{$nodeName} = (string) $nodeValue;
         }
     }
 }
开发者ID:smnDev,项目名称:pheeca,代码行数:23,代码来源:Xml.php

示例7: createChild

 /**
  * Crea una struttura dati $section con i valori $value
  * @param String $section
  * @param String|Array $value
  * @return \self
  */
 public function createChild($section, $value)
 {
     $e = explode($this->_separator, $section, 2);
     $newSection = $e[0];
     $dataSend = array($e[1] => $value);
     if ($this->{$newSection} instanceof self) {
         $child = $this->{$newSection};
     } else {
         $child = new self();
     }
     $child->process($dataSend);
     return $child;
 }
开发者ID:smnDev,项目名称:pheeca,代码行数:19,代码来源:Ini.php

示例8: import

 /**
  * @param string $file
  * @param string $sep (Optional.)
  * @param string $quote (Optional.)
  * @param boolean $header (Optional.)
  * @return \CsvImport
  */
 public static function import($file, $sep = self::SEP_COMMA, $quote = self::QUOTE_AUTO, $header = false)
 {
     $self = new self(array('filename' => $file, 'separator' => $sep, 'quotes' => $quote, 'header' => $header));
     return $self->process();
 }
开发者ID:ondrejd,项目名称:php-utils,代码行数:12,代码来源:CsvImport.php

示例9: forge

 /**
  * Create an instance and process data
  * @param  object $scope Scope
  * @param  \Carbon\Carbon $date Date
  * @return self Line chart instance
  */
 public static function forge($scope, $date)
 {
     $chart = new self($scope, $date);
     $chart->process();
     return $chart;
 }
开发者ID:simondubois,项目名称:budget,代码行数:12,代码来源:DonutChart.php

示例10: doGetopt

 /**
  * Parses the command line
  *
  * See getopt() for a complete description.
  *
  * @param  numeric $version      the getopt version: 1 or 2
  * @param  array   $args         the arguments
  * @param  string  $shortOptions the short options definition, e.g. "ab:c::"
  * @param  array   $longOptions  the long options definition
  * @param  string  $ambiguity    directive to handle option names ambiguity
  * @return array   the parsed options, their arguments and parameters
  * @access public
  * @static
  */
 public static function doGetopt($version = null, $args = array(), $shortOptions = '', $longOptions = array(), $ambiguity = '')
 {
     $getopt = new self();
     return $getopt->process($args, $shortOptions, $longOptions, $ambiguity, $version);
 }
开发者ID:jiang51,项目名称:monda,代码行数:19,代码来源:Getopt.php

示例11: import

 public static function import($tpl_name)
 {
     $is_aliased = preg_match("~^\\@(.+)~", $tpl_name, $real_name);
     if ($is_aliased) {
         $tpl_name = $real_name[1];
     } else {
         $tpl_name = fx::getComponentFullName($tpl_name);
     }
     if (isset(self::$imported_classes[$tpl_name])) {
         return self::$imported_classes[$tpl_name];
     }
     $processor = new self();
     $processor->setTemplateName($tpl_name);
     if ($is_aliased) {
         $processor->isAliased(true);
     }
     $classname = $processor->getCompiledClassName();
     $processor->addDefaultSourceDirs();
     try {
         $processor->process();
     } catch (\Exception $e) {
         self::$imported_classes[$tpl_name] = false;
         return false;
     }
     self::$imported_classes[$tpl_name] = $classname;
     $classname::init();
     return $classname;
 }
开发者ID:floxim,项目名称:floxim,代码行数:28,代码来源:Loader.php

示例12: handle

 /**
  * @param DibiConnection $dibiConnection
  * @param string $migrationsFolder
  * @param string $tempDirectory
  */
 public static function handle(DibiConnection $dibiConnection, $migrationsFolder, $tempDirectory)
 {
     $instance = new self($dibiConnection, $migrationsFolder, $tempDirectory);
     $instance->process();
 }
开发者ID:doublemcz,项目名称:dibi-migrations,代码行数:10,代码来源:Engine.php

示例13: processStatic

 public static function processStatic(Parser $parser, $attributes)
 {
     $instance = new self($parser, $attributes);
     return $instance->process();
 }
开发者ID:nabble,项目名称:ajde-core,代码行数:5,代码来源:Crud.php

示例14: minify

 /**
  * @param string $source
  * @param array $options
  * @return string
  */
 public static function minify($source, $options = [])
 {
     $min = new self($options);
     return $min->process($source);
 }
开发者ID:hareko,项目名称:php-application-packer,代码行数:10,代码来源:PackCSS.php

示例15: process_request

 /**
  *
  * @param array $input
  */
 public static function process_request(array $input)
 {
     $c = new self();
     $c->process($input);
 }
开发者ID:Blu2z,项目名称:implsk,代码行数:9,代码来源:controller.php


注:本文中的self::process方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。