This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187964 - Allow customization of getter, setter, and constructor templates for code generation
Summary: Allow customization of getter, setter, and constructor templates for code gen...
Status: RESOLVED DUPLICATE of bug 152321
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 21:19 UTC by bobw
Modified: 2011-08-15 09:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bobw 2010-06-22 21:19:23 UTC
The code generation feature that can insert a constructor and getters and setters is great, but it really needs to support customization of the templates so that they can be configured appropriately for the code standards in use for a project. As-is, I must do so much modification to the generated code that the feature really makes for more work than it saves.
Comment 1 bfenton 2010-06-24 20:33:45 UTC
I agree, this would be very helpful. Several other comments on the NetBeans for PHP blog support this as well. An example use case:

class Example
{
    private $_name = '';

    public function getName()
    {
        return $this->_name;
    }
}

This would help to bring NetBeans more in line for users following the Zend coding standard. Thanks.
Comment 2 Filip Zamboj 2010-09-15 12:32:01 UTC
batch reassigning
Comment 3 Ondrej Brejla 2011-08-15 09:48:53 UTC

*** This bug has been marked as a duplicate of bug 152321 ***