Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4712 Rev 6388
Línea 94... Línea 94...
94
        return $this->executeFetchAllObject($select, $prototype);
94
        return $this->executeFetchAllObject($select, $prototype);
95
    }
95
    }
Línea 96... Línea 96...
96
    
96
    
97
    /**
97
    /**
-
 
98
     *
-
 
99
     * @param int $network_id
-
 
100
     * @return MyCoachCategory[]
-
 
101
     */
-
 
102
    public function fetchAllByNetworkId($network_id)
-
 
103
    {
-
 
104
        
-
 
105
        $select = $this->sql->select(self::_TABLE);
-
 
106
        $select->where->equalTo('network_id', $network_id);
-
 
107
        $select->order('name DESC');
-
 
108
        
-
 
109
        $prototype = new MyCoachCategory();
-
 
110
        return $this->executeFetchAllObject($select, $prototype);
-
 
111
    }
-
 
112
    
-
 
113
 
-
 
114
    /**
-
 
115
     *
-
 
116
     * @param int $network_id
-
 
117
     * @return MyCoachCategory[]
-
 
118
     */
-
 
119
    public function fetchAllPublicByNetworkId($network_id)
-
 
120
    {
-
 
121
        
-
 
122
        $select = $this->sql->select(self::_TABLE);
-
 
123
        $select->where->equalTo('network_id', $network_id);
-
 
124
        $select->where->equalTo('privacy', MyCoachCategory::PRIVACY_PUBLIC);
-
 
125
        $select->order('name DESC');
-
 
126
        
-
 
127
        $prototype = new MyCoachCategory();
-
 
128
        return $this->executeFetchAllObject($select, $prototype);
-
 
129
    }
-
 
130
    
-
 
131
    /**
-
 
132
     *
-
 
133
     * @param array $ids
-
 
134
     * @return MyCoachCategory[]
-
 
135
     */
-
 
136
    public function fetchAllByIds($ids)
-
 
137
    {
-
 
138
        
-
 
139
        $select = $this->sql->select(self::_TABLE);
-
 
140
        $select->where->in('id', $ids);
-
 
141
        $select->order('name DESC');
-
 
142
        
-
 
143
        $prototype = new MyCoachCategory();
-
 
144
        return $this->executeFetchAllObject($select, $prototype);
-
 
145
    }
-
 
146
    
-
 
147
    /**
98
     *
148
     *
99
     * @param int $id
149
     * @param int $id
100
     * @return boolean
150
     * @return boolean
101
     */
151
     */
102
    public function delete($id)
152
    public function delete($id)