瀏覽代碼

Documentation

Michael Francis 14 年之前
父節點
當前提交
fbb54f58ad
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      models/Post.php
  2. 二進制
      views/.DS_Store

+ 5 - 0
models/Post.php

@@ -124,6 +124,11 @@ class Post extends \lithium\data\Model {
 		return $result; 
 	}
 
+	/**
+	 * Stores the post to the database
+	 * @param Post $entity The post to store.
+	 * @param User $user The user to store the post to. 
+	 */ 
 	public function store($entity, $user)
 	{
 		$updateData = array('$push' => array('feed' =>  $entity['_id']->__toString()));

二進制
views/.DS_Store