Changeset 11844

Show
Ignore:
Timestamp:
08/30/07 10:23:04 (1 year ago)
Author:
rambo
Message:

fixed formatting to coding standards

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/core/querybuilder.php

    r11566 r11844  
    1515 */ 
    1616 
    17 class midcom_core_querybuilder_cached { 
     17class midcom_core_querybuilder_cached 
     18
    1819    /** 
    1920     * The timeout to use for this cache 
     
    2425    protected $cache = null; 
    2526 
    26     function __construct ($cache = FALSE) { 
    27         if ($cache === FALSE) { 
     27    function __construct ($cache = FALSE) 
     28    { 
     29        if ($cache === FALSE) 
     30        { 
    2831            $this->cache = $_MIDCOM->cache->memcache; 
    29         } else { 
     32        } 
     33        else 
     34        { 
    3035            $this->cache = $cache; 
    3136        } 
     
    3641     * Note: With large lists of inputs, the key becomes very loong... 
    3742     */ 
    38     function rec_implode($key, $val) { 
     43    function rec_implode($key, $val) 
     44    { 
    3945        $this->new_key .= "{$key}_$val"; 
    4046    } 
     
    4349     * Makes sure that all calls are catched. 
    4450     * */ 
    45     function __call($name, $args) { 
     51    function __call($name, $args) 
     52    { 
    4653        if ($this->qb == NULL)  
    4754        { 
     
    6067     * Executes the query and saves it to memcached 
    6168     */ 
    62     function execute() { 
     69    function execute() 
     70    { 
    6371        $key = "midcom_querybuilder_cache_{$this->qb->classname}" . implode($this->key , "_"); 
    6472 
    6573        $return = $this->cache->get($key); 
    66         if ($return) { 
     74        if ($return) 
     75        { 
    6776            return $return;  
    6877        }