I’ve copied a few classes and parts of classes into my app then made moderate to heavy modifications, but I’m not sure how I should credit/license the code.
For example, I have a version of CDbAuthManager named DbAuthManager where I added an additional column to the table and modified the code accordingly. Right now I have the phpdoc for the class like so:
/**
* AuthManager class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Me <me@myemail.com>
* @link http :// www.yiiframework.com/
* @link http :// www.mysite.com/
* @copyright Copyright © 2008-2011 Yii Software LLC
* @license http :// www.yiiframework.com/license/
* @copyright Copyright © Me
* @license http :// www.mysite.com/license/
*/
Is this correct? Should I remove the original Yii author and license? If not, can I also have a link to my license?
In another example I have copied a few functions from a Yii class into my own class. I modified them slightly but they’re mostly original code. How should I give credit? Do I need to include the Yii license?