Rosbridge

Extends \AppModel

Rosbridges Model

Rosbridges represent a rosbridge servers. It contains information about the port, host, and protocol.

author

Russell Toris - rctoris@wpi.edu

copyright

2014 Worcester Polytechnic Institute

link

https://github.com/WPI-RAIL/rms

since

RMS v 2.0.0

version 2.0.9
package

app.Model

Methods

Decrypt the rosauth key in any results.

afterFind(array $results = array(), boolean $primary = false) : array

Arguments

$results

array

The results to decrypt the rosauth key.

$primary

boolean

Unused in this implementation.

Response

array

The results withe a decrypted rosauth key.

Check if a new rosauth key was provided. If so, hash the encrypt and store it.

beforeSave(array $options = array()) : boolean

Arguments

$options

array

Unused in this implementation.

Response

boolean

If the save was successful.

Check if a field is equal to another. This is useful for password validations.

equalToField(string $check, string $otherField) : boolean
inherited

Arguments

$check

string

The name of the field to check.

$otherField

string

The name of the other field to check with the first one.

Response

boolean

Returns if the two fields have equal contents.

Properties

The validation criteria for the model.

validate : array
var

Type(s)

array

All rosbridges have a single protocol.

belongsTo : string
var

Type(s)

string

rosbridge servers may have many environments.

hasMany : array
var

Type(s)

array