Development

Changeset 33344

You must first sign up to be able to contribute.

Changeset 33344

Show
Ignore:
Timestamp:
02/23/12 12:11:28 (3 years ago)
Author:
coopers
Message:

added convenience methods

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/cpUniFormPlugin/branches/1.4/lib/widget/sfWidgetFormSchemaFormatterUniForm.php

    r33017 r33344  
    1212    $errorRowFormatInARow        = "    <li>%error%</li>\n", 
    1313    $namedErrorRowFormatInARow   = "    <li>%name%: %error%</li>\n", 
    14     $decoratorFormat             = "%content%"; 
     14    $decoratorFormat             = "%content%", 
     15    $error_warning               = "Sorry, this form needs corrections."; 
    1516 
    1617  protected function getFieldsetToken(sfForm $form, $name = null) { 
     
    117118  } 
    118119   
     120  public function setRowInErrorFormat($format) { 
     121    $this->rowInErrorFormat = $format; 
     122  } 
     123   
    119124  public function formatErrorRow($errors) { 
    120125    if (null === $errors || !$errors) { 
     
    128133   
    129134  public function getErrorWarning() { 
    130     return 'Sorry, this form needs corrections.'; 
     135    return $this->error_warning; 
     136  } 
     137   
     138  public function setErrorWarning($warning) { 
     139    $this->error_warning = $wargning; 
    131140  } 
    132141