/**
  * Store the form's values to this object.
  * @param ALBUM_ENTRY $obj
  * @access private
  */
 protected function _store_to_object($obj)
 {
     parent::_store_to_object($obj);
     $obj->date = $this->value_for('day');
 }
 /**
  * Add drafting to the renderer, if allowed.
  * @return FORM_RENDERER
  */
 public function make_renderer()
 {
     $Result = parent::make_renderer();
     $Result->drafts_enabled = $this->value_for('draft');
     if ($Result->drafts_enabled) {
         $this->button = 'Publish';
     }
     return $Result;
 }
    /**
     * @access private
     */
    protected function _draw_scripts()
    {
        parent::_draw_scripts();
        ?>
  function on_click_branch (ctrl, id)
  {
    <?php 
        $this->_draw_branch_scripts();
        ?>
  }
<?php 
    }