Overview

Packages

  • None
  • WxRobot
    • Admin
    • Cmd
    • CoreFunctions
    • Exends
    • Install
    • Table
    • Uninstall
    • WxSDK

Classes

  • WxRobot_Table_Extends
  • WxRobot_Table_Menu
  • WxRobot_Table_Records
  • WxRobot_Table_Reply
  • WxRobot_Wp
  • Overview
  • Package
  • Class

Class WxRobot_Wp

WxRobot_Wp WordPress文章查询相关功能

Package: WxRobot\Table
Author: midoks
Located at class-wx-wp.php
Methods summary
public
# __construct( )

构造函数

构造函数

public static WxRobot_Table_Extends
# instance( )

WxRobot 扩展表类实例化

WxRobot 扩展表类实例化

Returns

WxRobot_Table_Extends
  • Table Extends instance
public
# option_pic_to_array( )

把配置中图片变成变为数据处理

把配置中图片变成变为数据处理

public string
# path_url_encode( $thumb )

对中文名的图片路径进行urlencode编码

对中文名的图片路径进行urlencode编码

Returns

string
$thumb 图片路径
string
public string
# get_opt_pic( string $c, string $type )

获取文章中的图片

获取文章中的图片

Parameters

$c
文章内容
$type
图片类型

Returns

string
public string
# get_opt_pic_small( string $content = '' )

获取最优图片地址

获取最优图片地址

Parameters

$content
文章内容

Returns

string
public string
# get_opt_pic_big( string $content = '' )

获取最优图片地址

获取最优图片地址

Parameters

$content
文章内容

Returns

string
public string
# head_one_line( string $c )

对每个第一条消息,进行处理字符截取

对每个第一条消息,进行处理字符截取

Parameters

$c

Returns

string
public array
# Qid( integer $id )

指定文章回复

指定文章回复

Parameters

$id
文章的ID

Returns

array
public array
# QidResult( integer $id )

指定文章回复

指定文章回复

Parameters

$id
文章的ID

Returns

array
public array
# Qids( array $id )

指定文章回复

指定文章回复

Parameters

$id
文章的ID

Returns

array
public xml
# today( )

获取今日发布的文章

获取今日发布的文章

Returns

xml
public xml
# hot( integer $int )

获取最热文章

获取最热文章

Parameters

$int
数量

Returns

xml
public xml
# news( integer $int )

获取最新文章

获取最新文章

Parameters

$int
数量

Returns

xml
public xml
# rand( integer $int )

获取随机文章

获取随机文章

Parameters

$int
数量

Returns

xml
Properties summary
public array $opt_big_show
# array()
public array $opt_small_show
# array()
public static $_instance

Table Extends Instance

Table Extends Instance

# null
API documentation generated by ApiGen