Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 15449
Línea 23... Línea 23...
23
         */
23
         */
24
        if (null === $this->adapter) {
24
        if (null === $this->adapter) {
25
            throw new \Exception('No database adapter present');
25
            throw new \Exception('No database adapter present');
26
        }
26
        }
Línea -... Línea 27...
-
 
27
        
-
 
28
       
27
        
29
        
28
        $select          = new Select();
30
        $select          = new Select();
29
        $tableIdentifier = new TableIdentifier($this->getTable(), $this->getSchema());
31
        $tableIdentifier = new TableIdentifier($this->getTable(), $this->getSchema());
30
        $select->from($this->getTable())->columns(array($this->getField()));
32
        $select->from($this->getTable())->columns(array($this->getField()));
31
        $select->where->equalTo($this->getField(), null);
33
        $select->where->equalTo($this->getField(), null);
32
        
34
     
33
        $custom_fields = $this->getOption('custom_fields');
35
        $custom_fields = $this->getOption('custom_fields');
34
        if(is_array($custom_fields)) {
36
        if(is_array($custom_fields)) {
35
            foreach($custom_fields as $key_custom => $value_custom)
37
            foreach($custom_fields as $key_custom => $value_custom)
36
            {
38
            {
Línea 54... Línea 56...
54
        		$select->where($this->exclude);
56
        		$select->where($this->exclude);
55
        	}
57
        	}
56
        }
58
        }
Línea 57... Línea 59...
57
        
59
        
-
 
60
        $this->setSelect($select);
-
 
61
        
-
 
62
 
Línea 58... Línea 63...
58
        $this->setSelect($select);
63
       // echo $select->getSqlString($this->adapter->platform); exit;
59
 
64
 
Línea 60... Línea 65...
60
        $valid = true;
65
        $valid = true;