Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 590 Rev 658
Línea 150... Línea 150...
150
        $select->order(['order', 'name']);
150
        $select->order(['order', 'name']);
151
        return $this->executeFetchAllObject($select, $prototype);
151
        return $this->executeFetchAllObject($select, $prototype);
152
    }
152
    }
Línea 153... Línea 153...
153
 
153
 
-
 
154
    /**
-
 
155
     * Get total count of slides by capsule ID
-
 
156
     * @param int $capsule_id
-
 
157
     * @return int
-
 
158
     */
-
 
159
    public function fetchTotalCountByCapsuleId($capsule_id)
-
 
160
    {
-
 
161
        $select = $this->sql->select();
-
 
162
        $select->columns(['total' => new Expression('COUNT(*)')]);
-
 
163
        $select->from(self::_TABLE);
-
 
164
        $select->where->equalTo('capsule_id', $capsule_id);
-
 
165
        $record = $this->executeFetchOneArray($select);
-
 
166
        return (int)$record['total'];
-
 
167
    }
-
 
168
 
154
    /**
169
    /**
155
     * Get total count of slides by company ID
170
     * Get total count of slides by company ID
156
     * @param int $company_id
171
     * @param int $company_id
157
     * @return int
172
     * @return int
158
     */
173
     */