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


PHP self::_init方法代碼示例

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


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

示例1: factory

 public static function factory($id)
 {
     $user = new self($id);
     $user->_auth = Zend_Auth::getInstance();
     $user->_init();
     return $user;
 }
開發者ID:roycocup,項目名稱:Tests,代碼行數:7,代碼來源:User.php

示例2: get

 public static function get($entity)
 {
     $pdf = new self();
     $pdf->setEntity($entity);
     $pdf->_init();
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:commerce-bundle,代碼行數:7,代碼來源:coding.pdf.php

示例3: factory

 public static function factory($userRoles = null)
 {
     $self = new self();
     if (null !== $userRoles) {
         $self->_init($userRoles);
     }
     return $self;
 }
開發者ID:roycocup,項目名稱:Tests,代碼行數:8,代碼來源:Acl.php

示例4: get

 public static function get($codes)
 {
     $pdf = new self();
     $pdf->_init();
     foreach ($codes as $code) {
         $pdf->addEntity(strtoupper($code));
     }
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:default-bundle,代碼行數:9,代碼來源:Tag.php

示例5: get

 public static function get($entities)
 {
     $pdf = new self();
     foreach ($entities as $entity) {
         $pdf->_init($entity);
         $pdf->_show($entity);
     }
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:commerce-bundle,代碼行數:9,代碼來源:BillBoost.php

示例6: get

 public static function get($stocks)
 {
     $pdf = new self();
     $pdf->_init();
     foreach ($stocks as $stock) {
         $pdf->_show($stock);
     }
     $pdf->_footer();
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:product-bundle,代碼行數:10,代碼來源:Stock.php

示例7: get

 public static function get(\DateTime $date, $entities)
 {
     $pdf = new self();
     $pdf->_init();
     $pdf->_header($date);
     foreach ($entities as $entity) {
         $pdf->_show($entity, $date);
     }
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:daily-bundle,代碼行數:10,代碼來源:Tomorrow.php

示例8: get

 public static function get($entity)
 {
     $pdf = new self();
     $pdf->setEntity($entity[0]);
     $pdf->addPage();
     $pdf->_init();
     $pdf->_header();
     $pdf->_content();
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:office-bundle,代碼行數:10,代碼來源:Order.php

示例9: get

 public static function get($entities)
 {
     $pdf = new self();
     $pdf->_init();
     $pdf->addPage();
     //	var_dump($entities); exit;
     foreach ($entities as $entity) {
         $pdf->_line($entity);
     }
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:office-bundle,代碼行數:11,代碼來源:TaskList.php

示例10: get

 public static function get(Site $entity, $transmitters, $withHeader = true)
 {
     $pdf = new self();
     $pdf->setWithHeader($withHeader);
     $pdf->_init($entity);
     foreach ($transmitters as $transmitter) {
         $pdf->_show($transmitter);
     }
     $pdf->_footer();
     return $pdf->Output('', 'S');
 }
開發者ID:jlm-entreprise,項目名稱:transmitter-bundle,代碼行數:11,代碼來源:SiteList.php

示例11: _fetchAll

 private static function _fetchAll(Showcase_Admin $admin)
 {
     // static method used by the admin section to get back all instances of
     if (!count(self::$_configs)) {
         $stmt = Zend_Registry::get('dbh')->prepare('CALL `admin_configs_fetch`(?, ?)');
         $stmt->execute(array($id, $type));
         $result = $stmt->fetchAll(Zend_Db::FETCH_OBJ);
         $stmt->closeCursor();
         foreach ($result as $row) {
             $config = new self();
             $config->_init($row);
             self::$_configs[$config->id] = $config;
         }
     }
 }
開發者ID:roycocup,項目名稱:Tests,代碼行數:15,代碼來源:Config.php

示例12: factory

 public static function factory(stdClass $resource = null)
 {
     $self = new self();
     $self->_init($resource);
     return $self;
 }
開發者ID:roycocup,項目名稱:Tests,代碼行數:6,代碼來源:Resource.php

示例13: factory

 public static function factory(stdClass $result)
 {
     $self = new self();
     $self->_init($result);
     return $self;
 }
開發者ID:roycocup,項目名稱:Tests,代碼行數:6,代碼來源:Article.php


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