Development

Changeset 24293

You must first sign up to be able to contribute.

Changeset 24293

Show
Ignore:
Timestamp:
11/23/09 22:23:48 (3 years ago)
Author:
FabianLange
Message:

[1.3, 1.4] added missing API for getting Parameters of an sfRoute instance (closes #7632)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.3/lib/routing/sfRoute.class.php

    r24152 r24293  
    7575 
    7676  /** 
    77    * Returns true if the form is bound to input values. 
    78    * 
    79    * @return Boolean true if the form is bound to input values, false otherwise 
     77   * Returns true if the route is bound to context and parameters. 
     78   * 
     79   * @return Boolean true if theroute is bound to context and parameters, false otherwise 
    8080   */ 
    8181  public function isBound() 
     
    315315 
    316316  /** 
     317   * Returns the route parameters. 
     318   * 
     319   * @return array The route parameters 
     320   */ 
     321  public function getParameters() 
     322  { 
     323    if (!$this->compiled) 
     324    { 
     325      $this->compile(); 
     326    } 
     327 
     328    return $this->parameters; 
     329  } 
     330 
     331  /** 
    317332   * Returns the compiled pattern. 
    318333   * 
  • branches/1.4/lib/routing/sfRoute.class.php

    r24050 r24293  
    7575 
    7676  /** 
    77    * Returns true if the form is bound to input values. 
    78    * 
    79    * @return Boolean true if the form is bound to input values, false otherwise 
     77   * Returns true if the route is bound to context and parameters. 
     78   * 
     79   * @return Boolean true if theroute is bound to context and parameters, false otherwise 
    8080   */ 
    8181  public function isBound() 
     
    315315 
    316316  /** 
     317   * Returns the route parameters. 
     318   * 
     319   * @return array The route parameters 
     320   */ 
     321  public function getParameters() 
     322  { 
     323    if (!$this->compiled) 
     324    { 
     325      $this->compile(); 
     326    } 
     327 
     328    return $this->parameters; 
     329  } 
     330 
     331  /** 
    317332   * Returns the compiled pattern. 
    318333   *