ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9163


Ignore:
Timestamp:
Nov 15, 2008, 5:52:55 PM (11 years ago)
Author:
ebihara
Message:

#3155:sfOpenPNEAuthForm is not now implementing IteratorAggregate?

Location:
OpenPNE3/branches/goto_1.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/branches/goto_1.2/apps/mobile_frontend/templates/_partsLogin.php

    r8787 r9163  
    66<tr><td bgcolor="#EEEEFF">
    77<form action="<?php echo $link_to ?>" method="post"<?php if($form->isUtn()): ?> utn<?php endif; ?>>
    8 <?php foreach ($form as $key => $row) : ?>
    9 <?php if (!$row->isHidden()) : ?>
    10 <?php echo $row->renderLabel(); ?><br>
    11 <?php echo $row->render(); ?><br>
    12 <?php endif; ?>
    13 <?php endforeach; ?>
     8<?php echo $form ?>
    149<center>
    1510<input type="submit" value="ログイン">
  • OpenPNE3/branches/goto_1.2/lib/filter/sfOpenPNEExecutionFilter.class.php

    r8872 r9163  
    1616      foreach ($viewAttributes as $key => $attribute)
    1717      {
    18         if ($attribute instanceof sfForm)
    19         {
    20           $attribute->getWidgetSchema()->setFormFormatterName('mobile');
    21           $viewAttributes[$key] = $attribute;
    22         }
     18        $this->setFormFormatterForMobile($attribute);
     19        $viewAttributes[$key] = $attribute;
    2320      }
    2421    }
     
    2623    parent::executeView($moduleName, $actionName, $viewName, $viewAttributes);
    2724  }
     25
     26  protected function setFormFormatterForMobile(&$form)
     27  {
     28    if (is_array($form))
     29    {
     30      array_map(array($this, 'setFormFormatterForMobile'), $form);
     31    } elseif ($form instanceof sfForm)
     32    {
     33      $form->getWidgetSchema()->setFormFormatterName('mobile');
     34    }
     35  }
    2836}
  • OpenPNE3/branches/goto_1.2/lib/form/sfOpenPNEAuthForm.class.php

    r9157 r9163  
    88 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    99 */
    10 abstract class sfOpenPNEAuthForm extends sfForm implements IteratorAggregate
     10abstract class sfOpenPNEAuthForm extends sfForm
    1111{
    1212  public
Note: See TracChangeset for help on using the changeset viewer.