閱讀926 返回首頁    go 技術社區[雲棲]


zend studio代碼自動提示問題,有的提示正常有的提示不正常,解決方法

經過試驗此類問題都是有備注中@reuturn 類名 有關

@return PositionData the static model class

加入這個類名後,代碼自動提示即可正常

案例:

class PositionData extends CActiveRecord
{
	/**
	 * Returns the static model of the specified AR class.
	 * @param string $className active record class name.
	 * @return PositionData the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return '{{1_position_data}}';
	}
}


最後更新:2017-04-04 07:03:44

  上一篇:go 采用commons-configuration包實現屬性文件讀取的工具類
  下一篇:go iOS開發那些事-性能優化–autorelease的使用問題