Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 620 Rev 632
Línea 121... Línea 121...
121
    {
121
    {
122
        $delete = $this->sql->delete(self::_TABLE);
122
        $delete = $this->sql->delete(self::_TABLE);
123
        $delete->where->equalTo('topic_id', $topic_id);
123
        $delete->where->equalTo('topic_id', $topic_id);
124
        return $this->executeDelete($delete);
124
        return $this->executeDelete($delete);
125
    }
125
    }
-
 
126
 
-
 
127
    /**
-
 
128
     * Deletes all topic-capsule relationships for a given capsule ID.
-
 
129
     * 
-
 
130
     * @param int $capsule_id
-
 
131
     * @return boolean
-
 
132
     */
-
 
133
    public function deleteAllByCapsuleId($capsule_id)
-
 
134
    {
-
 
135
        $delete = $this->sql->delete(self::_TABLE);
-
 
136
        $delete->where->equalTo('capsule_id', $capsule_id);
-
 
137
        return $this->executeDelete($delete);
-
 
138
    }
Línea 126... Línea 139...
126
    
139
    
127
    /**
140
    /**
128
     * Fetches a single topic-capsule relationship by capsule ID.
141
     * Fetches a single topic-capsule relationship by capsule ID.
129
     * Since a capsule might theoretically be in multiple topics, this fetches the first one found.
142
     * Since a capsule might theoretically be in multiple topics, this fetches the first one found.