Development

Changeset 6176

You must first sign up to be able to contribute.

Changeset 6176

Show
Ignore:
Timestamp:
11/27/07 08:13:54 (1 year ago)
Author:
fabien
Message:

removed sfView::isAttributeHolderEscaped() and added isEscaped() method to view attribute holder classes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/view/sfEscapedViewParameterHolder.class.php

    r5018 r6176  
    4747    $this->setEscaping(isset($options['escaping_strategy']) ? $options['escaping_strategy'] : 'bc'); 
    4848    $this->setEscapingMethod(isset($options['escaping_method']) ? $options['escaping_method'] : 'ESC_ENTITIES'); 
     49  } 
     50 
     51  /** 
     52   * Returns true if the current object acts as an escaper. 
     53   * 
     54   * @return Boolean true if the current object acts as an escaper, false otherwise 
     55   */ 
     56  public function isEscaped() 
     57  { 
     58    return true; 
    4959  } 
    5060 
  • trunk/lib/view/sfView.class.php

    r5955 r6176  
    137137 
    138138  /** 
    139    * Returns true if the current attribute holder automatically escapes attributes. 
    140    * 
    141    * @return Boolean true if the attribute holder escapes attributes, false otherwise 
    142    */ 
    143   public function isAttributeHolderEscaped() 
    144   { 
    145     return $this->attributeHolder instanceof sfEscapedViewParameterHolder; 
    146   } 
    147  
    148   /** 
    149139   * Executes any presentation logic and set template attributes. 
    150140   */ 
  • trunk/lib/view/sfViewParameterHolder.class.php

    r5018 r6176  
    4444 
    4545  /** 
     46   * Returns true if the current object acts as an escaper. 
     47   * 
     48   * @return Boolean true if the current object acts as an escaper, false otherwise 
     49   */ 
     50  public function isEscaped() 
     51  { 
     52    return false; 
     53  } 
     54 
     55  /** 
    4656   * Returns an array representation of the view parameters. 
    4757   *