Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4113 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4113 Rev 4842
Línea 207... Línea 207...
207
    public function insert($network)
207
    public function insert($network)
208
    {
208
    {
209
        $hydrator = new ObjectPropertyHydrator();
209
        $hydrator = new ObjectPropertyHydrator();
210
        $values = $hydrator->extract($network);
210
        $values = $hydrator->extract($network);
211
        $values = $this->removeEmpty($values);
211
        $values = $this->removeEmpty($values);
-
 
212
        $values['moodle_url'] = empty($values['moodle_url']) ? '' : $values['moodle_url'];
Línea 212... Línea 213...
212
        
213
        
213
        $insert = $this->sql->insert(self::_TABLE);
214
        $insert = $this->sql->insert(self::_TABLE);
Línea 214... Línea 215...
214
        $insert->values($values);
215
        $insert->values($values);
Línea 231... Línea 232...
231
    public function update($network)
232
    public function update($network)
232
    {
233
    {
233
        $hydrator = new ObjectPropertyHydrator();
234
        $hydrator = new ObjectPropertyHydrator();
234
        $values = $hydrator->extract($network);
235
        $values = $hydrator->extract($network);
235
        $values = $this->removeEmpty($values);
236
        $values = $this->removeEmpty($values);
-
 
237
        $values['moodle_url'] = empty($values['moodle_url']) ? '' : $values['moodle_url'];
-
 
238
        
Línea 236... Línea 239...
236
        
239
        
237
        $update = $this->sql->update(self::_TABLE);
240
        $update = $this->sql->update(self::_TABLE);
238
        $update->set($values);
241
        $update->set($values);