Browse Source

renamed phpdoc extension to apidoc

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
b17c827067
  1. 0
      extensions/yii/apidoc/.gitignore
  2. 2
      extensions/yii/apidoc/CHANGELOG.md
  3. 0
      extensions/yii/apidoc/LICENSE.md
  4. 4
      extensions/yii/apidoc/README.md
  5. 0
      extensions/yii/apidoc/assets/css/api.css
  6. 2
      extensions/yii/apidoc/assets/css/style.css
  7. 7
      extensions/yii/apidoc/commands/PhpdocController.php
  8. 11
      extensions/yii/apidoc/components/BaseRenderer.php
  9. 16
      extensions/yii/apidoc/components/OfflineRenderer.php
  10. 12
      extensions/yii/apidoc/composer.json
  11. 7
      extensions/yii/apidoc/models/BaseDoc.php
  12. 7
      extensions/yii/apidoc/models/ClassDoc.php
  13. 8
      extensions/yii/apidoc/models/Context.php
  14. 15
      extensions/yii/apidoc/models/EventDoc.php
  15. 7
      extensions/yii/apidoc/models/File.php
  16. 15
      extensions/yii/apidoc/models/FunctionDoc.php
  17. 8
      extensions/yii/apidoc/models/InterfaceDoc.php
  18. 18
      extensions/yii/apidoc/models/MethodDoc.php
  19. 18
      extensions/yii/apidoc/models/ParamDoc.php
  20. 8
      extensions/yii/apidoc/models/PropertyDoc.php
  21. 8
      extensions/yii/apidoc/models/TraitDoc.php
  22. 6
      extensions/yii/apidoc/views/class.php
  23. 6
      extensions/yii/apidoc/views/classSummary.php
  24. 6
      extensions/yii/apidoc/views/index.php
  25. 0
      extensions/yii/apidoc/views/layouts/offline.php
  26. 10
      extensions/yii/phpdoc/models/EventDoc.php
  27. 10
      extensions/yii/phpdoc/models/FunctionDoc.php
  28. 13
      extensions/yii/phpdoc/models/MethodDoc.php
  29. 18
      extensions/yii/phpdoc/models/ParamDoc.php

0
extensions/yii/phpdoc/.gitignore → extensions/yii/apidoc/.gitignore vendored

2
extensions/yii/phpdoc/CHANGELOG.md → extensions/yii/apidoc/CHANGELOG.md

@ -1,4 +1,4 @@
Yii Framework 2 phpdoc extension Change Log
Yii Framework 2 apidoc extension Change Log
===========================================
2.0.0 beta under development

0
extensions/yii/phpdoc/LICENSE.md → extensions/yii/apidoc/LICENSE.md

4
extensions/yii/phpdoc/README.md → extensions/yii/apidoc/README.md

@ -11,13 +11,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run
```
php composer.phar require yiisoft/yii2-phpdoc "*"
php composer.phar require yiisoft/yii2-apidoc "*"
```
or add
```json
"yiisoft/yii2-phpdoc": "*"
"yiisoft/yii2-apidoc": "*"
```
to the require section of your composer.json.

0
extensions/yii/phpdoc/assets/css/api.css → extensions/yii/apidoc/assets/css/api.css

2
extensions/yii/phpdoc/assets/css/style.css → extensions/yii/apidoc/assets/css/style.css

@ -4,7 +4,7 @@ body
body, div, span, p, input
{
font-family: Verdana, sans-serif, Arial;
font-family: Verdana, Arial, sans-serif;
font-size: 10pt;
color: #333333;
}

7
extensions/yii/phpdoc/commands/PhpdocController.php → extensions/yii/apidoc/commands/PhpdocController.php

@ -5,20 +5,19 @@
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\commands;
namespace yii\apidoc\commands;
use phpDocumentor\Reflection\FileReflector;
use yii\console\Controller;
use yii\helpers\Console;
use yii\helpers\FileHelper;
use yii\phpdoc\components\OfflineRenderer;
use yii\phpdoc\models\Context;
use yii\apidoc\components\OfflineRenderer;
use yii\apidoc\models\Context;
use Yii;
/**
*
* @author Carsten Brandt <mail@cebe.cc>
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class PhpdocController extends Controller

11
extensions/yii/phpdoc/components/BaseRenderer.php → extensions/yii/apidoc/components/BaseRenderer.php

@ -1,17 +1,16 @@
<?php
/**
*
*
* @author Carsten Brandt <mail@cebe.cc>
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\components;
namespace yii\apidoc\components;
use Yii;
use yii\base\Component;
use yii\console\Controller;
use yii\phpdoc\models\Context;
use yii\apidoc\models\Context;
use yii\web\View;
abstract class BaseRenderer extends Component

16
extensions/yii/phpdoc/components/OfflineRenderer.php → extensions/yii/apidoc/components/OfflineRenderer.php

@ -1,11 +1,11 @@
<?php
/**
*
*
* @author Carsten Brandt <mail@cebe.cc>
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\components;
namespace yii\apidoc\components;
use yii\base\ViewContextInterface;
@ -13,11 +13,11 @@ use yii\console\Controller;
use yii\helpers\Console;
use yii\helpers\FileHelper;
use yii\helpers\Html;
use yii\phpdoc\models\ClassDoc;
use yii\phpdoc\models\Context;
use yii\apidoc\models\ClassDoc;
use yii\apidoc\models\Context;
use Yii;
use yii\phpdoc\models\InterfaceDoc;
use yii\phpdoc\models\TraitDoc;
use yii\apidoc\models\InterfaceDoc;
use yii\apidoc\models\TraitDoc;
class OfflineRenderer extends BaseRenderer implements ViewContextInterface
{

12
extensions/yii/phpdoc/composer.json → extensions/yii/apidoc/composer.json

@ -1,11 +1,11 @@
{
"name": "yiisoft/yii2-phpdoc",
"description": "PHP Documentation generator for the Yii framework 2.0",
"keywords": ["yii", "phpdoc", "api", "documentation"],
"name": "yiisoft/yii2-apidoc",
"description": "API Documentation generator for the Yii framework 2.0",
"keywords": ["yii", "phpdoc", "apidoc", "api", "documentation"],
"type": "yii2-extension",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?labels=ext%3Aredis",
"issues": "https://github.com/yiisoft/yii2/issues?labels=ext%3Aapidoc",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
@ -23,7 +23,7 @@
"phpdocumentor/reflection": "1.0.2"
},
"autoload": {
"psr-0": { "yii\\redis\\": "" }
"psr-0": { "yii\\apidoc\\": "" }
},
"target-dir": "yii/redis"
"target-dir": "yii/apidoc"
}

7
extensions/yii/phpdoc/models/BaseDoc.php → extensions/yii/apidoc/models/BaseDoc.php

@ -1,6 +1,11 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\models;
namespace yii\apidoc\models;
use yii\base\Object;

7
extensions/yii/phpdoc/models/ClassDoc.php → extensions/yii/apidoc/models/ClassDoc.php

@ -1,6 +1,11 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\models;
namespace yii\apidoc\models;
/**
* Class ClassDoc

8
extensions/yii/phpdoc/models/Context.php → extensions/yii/apidoc/models/Context.php

@ -1,11 +1,11 @@
<?php
/**
*
*
* @author Carsten Brandt <mail@cebe.cc>
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\models;
namespace yii\apidoc\models;
use yii\base\Component;

15
extensions/yii/apidoc/models/EventDoc.php

@ -0,0 +1,15 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\apidoc\models;
class EventDoc extends BaseDoc
{
public $isInherited;
public $definedBy;
public $trigger;
}

7
extensions/yii/phpdoc/models/File.php → extensions/yii/apidoc/models/File.php

@ -1,6 +1,11 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\models;
namespace yii\apidoc\models;
use phpDocumentor\Reflection\FileReflector;
use yii\base\Object;

15
extensions/yii/apidoc/models/FunctionDoc.php

@ -0,0 +1,15 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\apidoc\models;
class FunctionDoc extends BaseDoc
{
public $signature;
public $input=array();
public $output;
}

8
extensions/yii/phpdoc/models/InterfaceDoc.php → extensions/yii/apidoc/models/InterfaceDoc.php

@ -1,11 +1,11 @@
<?php
/**
*
*
* @author Carsten Brandt <mail@cebe.cc>
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\models;
namespace yii\apidoc\models;
class InterfaceDoc extends BaseDoc
{

18
extensions/yii/apidoc/models/MethodDoc.php

@ -0,0 +1,18 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\apidoc\models;
class MethodDoc extends FunctionDoc
{
public $isAbstract;
public $isFinal;
public $isProtected;
public $isStatic;
public $isInherited;
public $definedBy;
}

18
extensions/yii/apidoc/models/ParamDoc.php

@ -0,0 +1,18 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\apidoc\models;
class ParamDoc
{
public $name;
public $description;
public $type;
public $isOptional;
public $defaultValue;
public $isPassedByReference;
}

8
extensions/yii/phpdoc/models/PropertyDoc.php → extensions/yii/apidoc/models/PropertyDoc.php

@ -1,11 +1,11 @@
<?php
/**
*
*
* @author Carsten Brandt <mail@cebe.cc>
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\models;
namespace yii\apidoc\models;
class PropertyDoc extends BaseDoc
{

8
extensions/yii/phpdoc/models/TraitDoc.php → extensions/yii/apidoc/models/TraitDoc.php

@ -1,11 +1,11 @@
<?php
/**
*
*
* @author Carsten Brandt <mail@cebe.cc>
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\phpdoc\models;
namespace yii\apidoc\models;
class TraitDoc extends BaseDoc
{

6
extensions/yii/phpdoc/views/class.php → extensions/yii/apidoc/views/class.php

@ -1,8 +1,8 @@
<?php
use yii\phpdoc\models\ClassDoc;
use yii\phpdoc\models\InterfaceDoc;
use yii\phpdoc\models\TraitDoc;
use yii\apidoc\models\ClassDoc;
use yii\apidoc\models\InterfaceDoc;
use yii\apidoc\models\TraitDoc;
/**
* @var ClassDoc|InterfaceDoc|TraitDoc $item
* @var yii\web\View $this

6
extensions/yii/phpdoc/views/classSummary.php → extensions/yii/apidoc/views/classSummary.php

@ -1,8 +1,8 @@
<?php
use yii\phpdoc\models\ClassDoc;
use yii\phpdoc\models\InterfaceDoc;
use yii\phpdoc\models\TraitDoc;
use yii\apidoc\models\ClassDoc;
use yii\apidoc\models\InterfaceDoc;
use yii\apidoc\models\TraitDoc;
/**
* @var ClassDoc|InterfaceDoc|TraitDoc $item
* @var yii\web\View $this

6
extensions/yii/phpdoc/views/index.php → extensions/yii/apidoc/views/index.php

@ -1,8 +1,8 @@
<?php
use yii\phpdoc\models\ClassDoc;
use yii\phpdoc\models\InterfaceDoc;
use yii\phpdoc\models\TraitDoc;
use yii\apidoc\models\ClassDoc;
use yii\apidoc\models\InterfaceDoc;
use yii\apidoc\models\TraitDoc;
/**
* @var ClassDoc[]|InterfaceDoc[]|TraitDoc[] $items
* @var yii\web\View $this

0
extensions/yii/phpdoc/views/layouts/offline.php → extensions/yii/apidoc/views/layouts/offline.php

10
extensions/yii/phpdoc/models/EventDoc.php

@ -1,10 +0,0 @@
<?php
namespace yii\phpdoc\models;
class EventDoc extends BaseDoc
{
public $isInherited;
public $definedBy;
public $trigger;
}

10
extensions/yii/phpdoc/models/FunctionDoc.php

@ -1,10 +0,0 @@
<?php
namespace yii\phpdoc\models;
class FunctionDoc extends BaseDoc
{
public $signature;
public $input=array();
public $output;
}

13
extensions/yii/phpdoc/models/MethodDoc.php

@ -1,13 +0,0 @@
<?php
namespace yii\phpdoc\models;
class MethodDoc extends FunctionDoc
{
public $isAbstract;
public $isFinal;
public $isProtected;
public $isStatic;
public $isInherited;
public $definedBy;
}

18
extensions/yii/phpdoc/models/ParamDoc.php

@ -1,18 +0,0 @@
<?php
/**
*
*
* @author Carsten Brandt <mail@cebe.cc>
*/
namespace yii\phpdoc\models;
class ParamDoc
{
public $name;
public $description;
public $type;
public $isOptional;
public $defaultValue;
public $isPassedByReference;
}
Loading…
Cancel
Save