root

Changeset 267

Show
Ignore:
Timestamp:
10/03/08 14:14:59 (2 years ago)
Author:
wbond
Message:

Added instance callback handlers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fActiveRecord.php

    r265 r267 Hide Line Numbers
    292292            $this->related_records 
    293293        ); 
     294    } 
     295     
     296     
     297    /** 
     298     * All requests that hit this method should be requests for callbacks 
     299     *  
     300     * @param  string $method  The method to create a callback for 
     301     * @return callback  The callback for the method requested 
     302     */ 
     303    public function __get($method) 
     304    { 
     305        return array($this, $method);        
    294306    } 
    295307     
  • fDatabase.php

    r262 r267 Hide Line Numbers
    236236            // PDO objects close their own connections when destroyed 
    237237        } 
     238    } 
     239     
     240     
     241    /** 
     242     * All requests that hit this method should be requests for callbacks 
     243     *  
     244     * @param  string $method  The method to create a callback for 
     245     * @return callback  The callback for the method requested 
     246     */ 
     247    public function __get($method) 
     248    { 
     249        return array($this, $method);        
    238250    } 
    239251     
  • fDate.php

    r257 r267 Hide Line Numbers
    5757         
    5858        $this->date = strtotime(date('Y-m-d 00:00:00', $timestamp)); 
     59    } 
     60     
     61     
     62    /** 
     63     * All requests that hit this method should be requests for callbacks 
     64     *  
     65     * @param  string $method  The method to create a callback for 
     66     * @return callback  The callback for the method requested 
     67     */ 
     68    public function __get($method) 
     69    { 
     70        return array($this, $method);        
    5971    } 
    6072     
  • fDirectory.php

    r265 r267 Hide Line Numbers
    156156        $this->directory =& fFilesystem::hookFilenameMap($directory); 
    157157        $this->exception =& fFilesystem::hookExceptionMap($directory); 
     158    } 
     159     
     160     
     161    /** 
     162     * All requests that hit this method should be requests for callbacks 
     163     *  
     164     * @param  string $method  The method to create a callback for 
     165     * @return callback  The callback for the method requested 
     166     */ 
     167    public function __get($method) 
     168    { 
     169        return array($this, $method);        
    158170    } 
    159171     
  • fEmail.php

    r265 r267 Hide Line Numbers
    261261     */ 
    262262    private $to_emails = array(); 
     263     
     264     
     265    /** 
     266     * All requests that hit this method should be requests for callbacks 
     267     *  
     268     * @param  string $method  The method to create a callback for 
     269     * @return callback  The callback for the method requested 
     270     */ 
     271    public function __get($method) 
     272    { 
     273        return array($this, $method);        
     274    } 
    263275     
    264276     
  • fFile.php

    r265 r267 Hide Line Numbers
    126126        $this->file      =& fFilesystem::hookFilenameMap($file); 
    127127        $this->exception =& fFilesystem::hookExceptionMap($file); 
     128    } 
     129     
     130     
     131    /** 
     132     * All requests that hit this method should be requests for callbacks 
     133     *  
     134     * @param  string $method  The method to create a callback for 
     135     * @return callback  The callback for the method requested 
     136     */ 
     137    public function __get($method) 
     138    { 
     139        return array($this, $method);        
    128140    } 
    129141     
  • fMoney.php

    r265 r267 Hide Line Numbers
    255255         
    256256        $this->amount = new fNumber($amount, $precision); 
     257    } 
     258     
     259     
     260    /** 
     261     * All requests that hit this method should be requests for callbacks 
     262     *  
     263     * @param  string $method  The method to create a callback for 
     264     * @return callback  The callback for the method requested 
     265     */ 
     266    public function __get($method) 
     267    { 
     268        return array($this, $method);        
    257269    } 
    258270     
  • fNumber.php

    r266 r267 Hide Line Numbers
    890890     
    891891    /** 
     892     * All requests that hit this method should be requests for callbacks 
     893     *  
     894     * @param  string $method  The method to create a callback for 
     895     * @return callback  The callback for the method requested 
     896     */ 
     897    public function __get($method) 
     898    { 
     899        return array($this, $method);        
     900    } 
     901     
     902     
     903    /** 
    892904     * Converts the object to an string 
    893905     *  
  • fPrintableException.php

    r218 r267 Hide Line Numbers
    1515abstract class fPrintableException extends Exception 
    1616{ 
     17    /** 
     18     * All requests that hit this method should be requests for callbacks 
     19     *  
     20     * @param  string $method  The method to create a callback for 
     21     * @return callback  The callback for the method requested 
     22     */ 
     23    public function __get($method) 
     24    { 
     25        return array($this, $method);        
     26    } 
     27     
     28     
    1729    /** 
    1830     * Gets the backtrace to currently called exception 
  • fRecordSet.php

    r265 r267 Hide Line Numbers
    330330            $result_object->next(); 
    331331        } 
     332    } 
     333     
     334     
     335    /** 
     336     * All requests that hit this method should be requests for callbacks 
     337     *  
     338     * @param  string $method  The method to create a callback for 
     339     * @return callback  The callback for the method requested 
     340     */ 
     341    public function __get($method) 
     342    { 
     343        return array($this, $method);        
    332344    } 
    333345     
  • fResult.php

    r262 r267 Hide Line Numbers
    164164            // SQLite doesn't have a way to free a result 
    165165        } 
     166    } 
     167     
     168     
     169    /** 
     170     * All requests that hit this method should be requests for callbacks 
     171     *  
     172     * @param  string $method  The method to create a callback for 
     173     * @return callback  The callback for the method requested 
     174     */ 
     175    public function __get($method) 
     176    { 
     177        return array($this, $method);        
    166178    } 
    167179     
  • fSchema.php

    r214 r267 Hide Line Numbers
    124124            file_put_contents($this->cache_file, $contents); 
    125125        } 
     126    } 
     127     
     128     
     129    /** 
     130     * All requests that hit this method should be requests for callbacks 
     131     *  
     132     * @param  string $method  The method to create a callback for 
     133     * @return callback  The callback for the method requested 
     134     */ 
     135    public function __get($method) 
     136    { 
     137        return array($this, $method);        
    126138    } 
    127139     
  • fTemplating.php

    r214 r267 Hide Line Numbers
    9191            fCore::handleException($e); 
    9292        } 
     93    } 
     94     
     95     
     96    /** 
     97     * All requests that hit this method should be requests for callbacks 
     98     *  
     99     * @param  string $method  The method to create a callback for 
     100     * @return callback  The callback for the method requested 
     101     */ 
     102    public function __get($method) 
     103    { 
     104        return array($this, $method);        
    93105    } 
    94106     
  • fTime.php

    r257 r267 Hide Line Numbers
    6161     
    6262    /** 
     63     * All requests that hit this method should be requests for callbacks 
     64     *  
     65     * @param  string $method  The method to create a callback for 
     66     * @return callback  The callback for the method requested 
     67     */ 
     68    public function __get($method) 
     69    { 
     70        return array($this, $method);        
     71    } 
     72     
     73     
     74    /** 
    6375     * Returns this time in 'H:i:s' format 
    6476     *  
  • fTimestamp.php

    r265 r267 Hide Line Numbers
    751751     
    752752    /** 
     753     * All requests that hit this method should be requests for callbacks 
     754     *  
     755     * @param  string $method  The method to create a callback for 
     756     * @return callback  The callback for the method requested 
     757     */ 
     758    public function __get($method) 
     759    { 
     760        return array($this, $method);        
     761    } 
     762     
     763     
     764    /** 
    753765     * Returns this date/time 
    754766     *  
  • fUnbufferedResult.php

    r262 r267 Hide Line Numbers
    144144            $this->result->closeCursor(); 
    145145        } 
     146    } 
     147     
     148     
     149    /** 
     150     * All requests that hit this method should be requests for callbacks 
     151     *  
     152     * @param  string $method  The method to create a callback for 
     153     * @return callback  The callback for the method requested 
     154     */ 
     155    public function __get($method) 
     156    { 
     157        return array($this, $method);        
    146158    } 
    147159     
  • fValidation.php

    r219 r267 Hide Line Numbers
    3535     */ 
    3636    private $required_fields = array(); 
     37     
     38     
     39    /** 
     40     * All requests that hit this method should be requests for callbacks 
     41     *  
     42     * @param  string $method  The method to create a callback for 
     43     * @return callback  The callback for the method requested 
     44     */ 
     45    public function __get($method) 
     46    { 
     47        return array($this, $method);        
     48    } 
    3749     
    3850