本文整理汇总了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;
}
示例2: get
public static function get($entity)
{
$pdf = new self();
$pdf->setEntity($entity);
$pdf->_init();
return $pdf->Output('', 'S');
}
示例3: factory
public static function factory($userRoles = null)
{
$self = new self();
if (null !== $userRoles) {
$self->_init($userRoles);
}
return $self;
}
示例4: get
public static function get($codes)
{
$pdf = new self();
$pdf->_init();
foreach ($codes as $code) {
$pdf->addEntity(strtoupper($code));
}
return $pdf->Output('', 'S');
}
示例5: get
public static function get($entities)
{
$pdf = new self();
foreach ($entities as $entity) {
$pdf->_init($entity);
$pdf->_show($entity);
}
return $pdf->Output('', 'S');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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;
}
}
}
示例12: factory
public static function factory(stdClass $resource = null)
{
$self = new self();
$self->_init($resource);
return $self;
}
示例13: factory
public static function factory(stdClass $result)
{
$self = new self();
$self->_init($result);
return $self;
}