Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4300 Rev 4398
Línea 1101... Línea 1101...
1101
        
1101
        
1102
        return $paginator;
1102
        return $paginator;
Línea 1103... Línea 1103...
1103
    }
1103
    }
-
 
1104
    
-
 
1105
    /**
-
 
1106
     *
-
 
1107
     * @param int $id
-
 
1108
     * @return boolean
-
 
1109
     */
-
 
1110
    public function markIsAdult($id)
-
 
1111
    {
-
 
1112
        $update = $this->sql->update(self::_TABLE);
-
 
1113
        $update->set([
-
 
1114
            'id_adult' => User::IS_ADULT_YES,
-
 
1115
        ]);
-
 
1116
        $update->where->equalTo('id', $id);
-
 
1117
        
-
 
1118
        return $this->executeUpdate($update);
-
 
1119
    }
-
 
1120
    
-
 
1121
    /**
-
 
1122
     *
-
 
1123
     * @param int $id
-
 
1124
     * @return boolean
-
 
1125
     */
-
 
1126
    public function markIsNotAdult($id)
-
 
1127
    {
-
 
1128
        $update = $this->sql->update(self::_TABLE);
-
 
1129
        $update->set([
-
 
1130
            'id_adult' => User::IS_ADULT_NO,
-
 
1131
        ]);
-
 
1132
        $update->where->equalTo('id', $id);
-
 
1133
        
-
 
1134
        return $this->executeUpdate($update);
-
 
1135
    }
1104
    
1136
    
1105
    /**
1137
    /**
1106
     * 
1138
     * 
1107
     * @param int $id
1139
     * @param int $id
1108
     * @return boolean
1140
     * @return boolean