本文整理汇总了PHP中Model::getTotal方法的典型用法代码示例。如果您正苦于以下问题:PHP Model::getTotal方法的具体用法?PHP Model::getTotal怎么用?PHP Model::getTotal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Model
的用法示例。
在下文中一共展示了Model::getTotal方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAllFeedbackTotal
public function getAllFeedbackTotal()
{
$_sql = "select * from feedback";
return parent::getTotal($_sql);
}
示例2: getAllEntryTotal
public function getAllEntryTotal()
{
$_sql = "select * from dict";
return parent::getTotal($_sql);
}
示例3: getAllDownloadTotal
public function getAllDownloadTotal()
{
$_sql = "select * from download";
return parent::getTotal($_sql);
}
示例4: getAllSubNavByIdTotal
public function getAllSubNavByIdTotal()
{
$_sql = "select * from nav where pid=" . $this->id;
return parent::getTotal($_sql);
}
示例5: getAllPermissionTotal
public function getAllPermissionTotal()
{
$_sql = "select * from permission";
return parent::getTotal($_sql);
}
示例6: getAllAdTotal
public function getAllAdTotal()
{
$_sql = "select * from ad where type in (" . $this->kind . ")";
return parent::getTotal($_sql);
}
示例7: getAllCommentTotal
public function getAllCommentTotal()
{
$_sql = "select * from comment where state=1 and aid=" . $this->aid;
//echo $_sql;
return parent::getTotal($_sql);
}
示例8: getAlltopicTotal
public function getAlltopicTotal()
{
$_sql = "select * from topic";
return parent::getTotal($_sql);
}
示例9: getAllOrdersTotal
public function getAllOrdersTotal()
{
$_sql = "select * from orders";
//echo $_sql;
return parent::getTotal($_sql);
}
示例10: getAllAnswersTotal
public function getAllAnswersTotal()
{
$_sql = "select * from ask where pid=" . $this->id;
//echo $_sql;
return parent::getTotal($_sql);
}
示例11: getAllProductTotal
public function getAllProductTotal()
{
$_sql = "select * from products";
//echo $_sql;
return parent::getTotal($_sql);
}
示例12: getAllCourseTotal
public function getAllCourseTotal()
{
$_sql = "select * from course";
return parent::getTotal($_sql);
}
示例13: getAllUserTotal
public function getAllUserTotal()
{
$_sql = "select * from user";
return parent::getTotal($_sql);
}
示例14: getAllLevelTotal
public function getAllLevelTotal()
{
$_sql = "select * from level";
return parent::getTotal($_sql);
}
示例15: getItemByIdTotal
public function getItemByIdTotal()
{
$_sql = "select * from vote where pid=" . $this->id;
return parent::getTotal($_sql);
}