BP_Document_Folder:填充()

用有关特定文件夹项的数据填充对象。

描述

文件:bp-document /类/ class-bp-document-folder.php

Public function populate() {global $wpdb;$row = wp_cache_get($this->id, 'bp_document_folder');If (false === $row) {$bp = buddypress();$row = $wpdb->get_row($wpdb->prepare("SELECT * FROM {$bp->document->table_name_folder} WHERE id = %d", $this->id));// db调用ok;no - cache好;Wp_cache_set ($this->id, $row, 'bp_document_folder');} if (empty($row)) {$this->id = 0;返回;} $this->id = (int) $row->id; $this->blog_id = (int) $row->blog_id; $this->user_id = (int) $row->user_id; $this->group_id = (int) $row->group_id; $this->parent = $row->parent; $this->title = $row->title; $this->privacy = $row->privacy; $this->date_created = $row->date_created; $this->date_modified = $row->date_modified; }

更新日志

更新日志
版本 描述
BuddyBoss 1.4.0 介绍了。

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队