當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。