编辑“WordPress:WPMU Functions/get blog list

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
Returns a stdClass Object of blogs with each in the following format:
Returns a stdClass Object of blogs with each in the following format:
返回博客的stdClass Object,每个Object的格式如下:


   stdClass Object (
   stdClass Object (
    [blog_id] => 1
    [site_id] => 1
    [domain] => sub.example.com
    [path] => /pathname/
    [registered] => 2008-01-01 01:00:00
    [last_updated] => 2008-01-01 01:00:00
    [public] => 1
    [archived] => 0
    [mature] => 0
    [spam] => 0
    [deleted] => 0
    [lang_id] => 0
    [blogname] => Blog Name
    [siteurl] => http://sub.example.com/pathname
    [post_count] => 1
  )
stdClass Object (
     [blog_id] => 1
     [blog_id] => 1
     [site_id] => 1
     [site_id] => 1
第41行: 第21行:
==Note==
==Note==


==注意==
Orders the blog list by registered date in descending order (oldest to newest). As such, using start and end may slice blogs other than than those desired. An improvement to this would be to sort by blog_id, blogname or even allowing the developer to specify their own order (for example: get_blog_list(0,10,true,blogname).
Orders the blog list by registered date in descending order (oldest to newest). As such, using start and end may slice blogs other than than those desired. An improvement to this would be to sort by blog_id, blogname or even allowing the developer to specify their own order (for example: get_blog_list(0,10,true,blogname).
以递减的顺序,根据博客的注册日期,列出博客(从最晚注册到最新注册)。这样,使用start and end可能会分开博客,而不会得到预期的效果。改善的方法是根据blog_id,博客名分类,甚至允许开发人员规定自己的博客顺序(例如:get_blog_list(0,10,正确的,博客名)。
----


----
----


Return to [[WordPress:WPMU_Functions]]
Return to [[WordPress:WPMU_Functions]]
返回到[[WordPress:WPMU_Functions| WPMU_Functions]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)