You are viewing the PKP Support Forum | PKP Home Wiki


OCS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, michael

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page. While these are OJS-specific, the OCS codebase is similar enough to OJS they should be of help. There is also an [url=http://pkp.sfu.ca/ocs_documentation[/url]OCS Documentation[/url] page with some more general documentation that might also be of interest.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a technical support question, try the OCS Technical Support subforum.


Postby derekp » Wed Mar 19, 2008 3:16 pm

In OCS 2.0.0-1, RegistrationTypeDAO::getOpenRegistrationTypesBySchedConfId() is defined but never called. Furthermore, it would not work correctly, since it is missing a call to DAO::dateToDB(). I suggest removing the whole function from the code.
Code: Select all
         * Retrieve an array of open registration types matching a particular scheduled conference ID.
         * @param $schedConfId int
         * @return object DAOResultFactory containing matching RegistrationTypes
        function &getOpenRegistrationTypesBySchedConfId($schedConfId, $rangeInfo = null) {
                $time = time();
                $result = &$this->retrieveRange(
                        'SELECT * FROM registration_types WHERE sched_conf_id = ? AND opening_date < ' . $time . ' AND closing_date < ' . $time . ' ORDER BY seq',
                         $schedConfId, $rangeInfo

                $returner = &new DAOResultFactory($result, $this, '_returnRegistrationTypeFromRow');
                return $returner;
Posts: 16
Joined: Wed Oct 10, 2007 12:45 am
Location: University of British Columbia

Re: RegistrationTypeDAO::getOpenRegistrationTypesBySchedConfId()

Postby asmecher » Thu Mar 20, 2008 8:51 pm

Hi Derek,

Thanks for the heads-up -- this function has been removed from CVS (http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3310).

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OCS Development

Who is online

Users browsing this forum: No registered users and 1 guest