IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Article
  • ArticleApproval
  • ArticleBack
  • ArticleCategory
  • ArticlePicture
  • ArticleReader

Class ArticlePicture

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\article\model\ArticlePicture
Namespace: application\modules\article\model
Copyright: Copyright © 2008-2013 IBOS Inc
Author: Ring Ring@ibos.com.cn
Located at system/modules/article/model/ArticlePicture.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public integer
# updateArticleidAndSortByPk( integer $pk, integer $articleid, integer $sort )

更新上传图片的所属文章

更新上传图片的所属文章

Parameters

$pk
图片主键
$articleid
文章id
$sort
排序号

Returns

integer
public integer
# deleteAllByPictureIds( string $ids )

根据图片id字符串,删除所有图片

根据图片id字符串,删除所有图片

Parameters

$ids

Returns

integer
public integer
# deleteAllByArticleIds( string $ids )

根据articleIds删除所有符合条件的数据

根据articleIds删除所有符合条件的数据

Parameters

$ids

Returns

integer
public array
# fetchPictureByArticleId( integer $articleid )

根据id获取数据,返回数组集合

根据id获取数据,返回数组集合

Parameters

$articleid
文章id

Returns

array

Methods inherited from application\core\model\Model

add(), beforeDelete(), create(), deleteByPk(), fetch(), fetchAll(), fetchAllByAttributes(), fetchAllByPk(), fetchAllSortByPk(), fetchByAttributes(), fetchByPk(), fetchCache(), fetchCaches(), getCacheKey(), getIsAllowCache(), getMaxId(), getModelClass(), init(), modify(), remove(), updateAll(), updateByPk()

Properties summary

Properties inherited from application\core\model\Model

$allowCache, $cacheLife

IBOS open source API documentation generated by ApiGen