public function save()
    {
        if ($this->widget && $this->widget->OwnerID && $this->widget->OwnerID != Member::currentUserID()) {
            // check ownership, not just write access
            return;
        }
        //Note : Gridster uses weird names... size_x? Why just not width, Argh...
        //			Admittedly, col and row makes sense since it's essentially
        //			using cells to align up objects.
        $obj = self::get()->byID($this->request->param('ID'));
        $obj->PosX = $this->request->postVar('col');
        $obj->PosY = $this->request->postVar('row');
        $obj->Width = $this->request->postVar('size_x');
        $obj->Height = $this->request->postVar('size_y');

        // only allow the owner access to write. 

        $obj->write();
    }
public function save()
    {
        if ($this->widget && $this->widget->OwnerID && $this->widget->OwnerID != Member::currentUserID()) {
            // check ownership, not just write access
            return;
        }
        //Note : Gridster uses weird names... size_x? Why just not width, Argh...
        //			Admittedly, col and row makes sense since it's essentially
        //			using cells to align up objects.
        $obj = self::get()->byID($this->request->param('ID'));
        $obj->PosX = $this->request->postVar('col');
        $obj->PosY = $this->request->postVar('row');
        $obj->Width = $this->request->postVar('size_x');
        $obj->Height = $this->request->postVar('size_y');

        // only allow the owner access to write. 

        $obj->write();
    }
public function save ( ) { if ( $ this -> widget && $ this -> widget -> OwnerID && $ this -> widget -> OwnerID != Member :: currentUserID ( ) ) { // check ownership, not just write access return ; } //Note : Gridster uses weird names... size_x? Why just not width, Argh... //			Admittedly, col and row makes sense since it's essentially //			using cells to align up objects. $ obj = self :: get ( ) -> byID ( $ this -> request -> param ( 'ID' ) ) ; $ obj -> PosX = $ this -> request -> postVar ( 'col' ) ; $ obj -> PosY = $ this -> request -> postVar ( 'row' ) ; $ obj -> Width = $ this -> request -> postVar ( 'size_x' ) ; $ obj -> Height = $ this -> request -> postVar ( 'size_y' ) ; // only allow the owner access to write.  $ obj -> write ( ) ; }
Called on every instance of resize.stop and draggable.stop in dashboards.js
Takes the parameters and saves them to dashlet of the ID given.
Values are automatically escaped.
Called on every instance of resize . stop and draggable . stop in dashboards . js Takes the parameters and saves them to dashlet of the ID given . Values are automatically escaped .