Doctrine_Template_MultiApplication (PHP)

Php code posted by fruit
created at 16 Aug 16:02, updated at 16 Aug 16:03

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php

  /**
   * @subpackage doctrine
   */
  class Doctrine_Template_MultiApplication extends Doctrine_Template
  {
    /**
     * Array of Sortable options
     *
     * @var string
     */
    protected $_options = array(

    );


    public function setUp()
    {
      $invokerClassName = get_class($this->getInvoker());

      $reflectionClass = new ReflectionClass($invokerClassName);

      if (null === ($relationSetUps = $cache->get($hash)))
      {
        $relationSetUps = array();

        /* @var $relation Doctrine_Relation_LocalKey */
        foreach ($this->getTable()->getRelations() as $relation)
        {
          $relationSetUps[] = array(
            'method' => $method,
            'alias' => $alias,
            'options' => $options
          );
        }

        $cache->set($hash, serialize($relationSetUps));
      }
      else
      {
        
        $relationSetUps = unserialize($relationSetUps);
      }
    }
  }
998 Bytes in 2 ms with coderay