可能重复:
Is there a standard for documenting GET/POST parameters?请求参数和PHPDoc的
试图找出通过PHPDoc的的方式,有意义的文档请求参数的最佳方式。具体来说,我有一些通过GET/POST接收参数的Zend Framework控制器操作,但不是功能参数。这有意义吗?
/**
* Display a pagination/grid list of rows.
*
* @param string $_GET['order'] What field to sort on
* @param string $_GET['dir'] Direction to sort; either ASC|DESC
*
* @return void
*/
public function listAction()
{
$order = $this->_request->order;
...
如果我生成的文档对于该方法,就不会出现的指示“命令”和“DIR”可以经由URL字符串该方法被传递。它会更有意义吗?
@param string $order
我应该使用@var吗?
思想欢迎。
非常困惑,为什么我在“重复”之前一年问了这个问题,而我的关闭了。没有意义。 – typeoneerror 2011-05-27 16:46:03
好问题,在Kohana回答这个问题3.谢谢你的观点:] – Brenden 2012-01-17 20:03:32