Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5765 Rev 6388
Línea 59... Línea 59...
59
        $prototype = new MyCoachCategoryUser();
59
        $prototype = new MyCoachCategoryUser();
60
        return $this->executeFetchOneObject($select, $prototype);
60
        return $this->executeFetchOneObject($select, $prototype);
61
    }
61
    }
Línea 62... Línea -...
62
    
-
 
63
    
-
 
64
    
-
 
65
    
-
 
66
    
62
    
67
    
63
    
68
    /**
64
    /**
-
 
65
     *
-
 
66
     * @param
-
 
67
     * @return MyCoachCategoryUser[]
-
 
68
     */
-
 
69
    public function fetchAllByUserId($user_id)
-
 
70
    {
-
 
71
        
-
 
72
        $select = $this->sql->select(self::_TABLE);
-
 
73
        $select->where->equalTo('user_id', $user_id);
-
 
74
        
-
 
75
        
-
 
76
        $prototype = new MyCoachCategoryUser();
-
 
77
        return $this->executeFetchAllObject($select, $prototype);
-
 
78
    }
-
 
79
 
-
 
80
    /**
69
     *
81
     *
70
     * @param 
82
     * @param
71
     * @return MyCoachCategoryUser[]
83
     * @return MyCoachCategoryUser[]
72
     */
84
     */
Línea 73... Línea 85...
73
    public function fetchAllByCategoryId($category_id)
85
    public function fetchAllByCategoryId($category_id)
74
    {
86
    {
75
        
87
        
Línea 76... Línea 88...
76
        $select = $this->sql->select(self::_TABLE);
88
        $select = $this->sql->select(self::_TABLE);
77
        $select->where->equalTo('category_id', $category_id);
89
        $select->where->equalTo('category_id', $category_id);
78
 
90
        
-
 
91
        
Línea 79... Línea 92...
79
        
92
        $prototype = new MyCoachCategoryUser();
80
        $prototype = new MyCoachCategoryUser();
93
        return $this->executeFetchAllObject($select, $prototype);
81
        return $this->executeFetchAllObject($select, $prototype);
94
    }
82
    }
95