当前位置: 首页>>代码示例>>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;未经允许,请勿转载。