How i can generate cix file from dock blocks on php classes?
Example:
<?php
class Test {
/**
* Execute a block of code
*
* @see otherfunction
* @param string $p The name of your favorite band
* @return string
*/
public function rock() {
return 'i gonna rock, rock!';
}
}
toddw
August 13, 2014, 7:17pm
2
Curious, but why do you want to generate CIX (as CIX is an internal Komodo code intelligence format)? Was it to create a Komodo API Catalog?
Yes, i have a php framework and do not want comment the class files for among of reasons.
With cix i have code intelligence without single comment on my class files!
toddw
August 18, 2014, 4:44pm
4
Why not just let Komodo scan the php files (instead of creating a CIX file from the PHP)?
toddw
August 18, 2014, 5:08pm
5
Or, create PHP stub files (classes, functions, etc…) that Komodo will scan and thus provide completions for.
toddw:
Or, create PHP stub files (classes, functions, etc…) that Komodo will scan and thus provide completions for.
Example of such files: GitHub - barryvdh/laravel-ide-helper: IDE Helper for Laravel
Thanks for all replies!
Like i said i do not want comments on source code. I want create a CIX because i can use it to intellisense without any comment block in my files.
toddw
August 25, 2014, 6:08pm
8
A cix file and the PHP stub file do the same thing (neither requires comment blocks in files to provide intellisense).
The stub file is much easier to create, so I would recommend using a PHP stub file… give it a try and I think you’ll see what I mean