protected function _getFrameFlag($frame, $options, $name) {
    $flag = "@$name";
    $rval = (property_exists($frame, $flag) ?
      $frame->{$flag}[0] : $options[$name]);
    if($name === 'embed') {
      // default is "@last"
      // backwards-compatibility support for "embed" maps:
      // true => "@last"
      // false => "@never"
      if($rval === true) {
        $rval = '@last';
      } else if($rval === false) {
        $rval = '@never';
      } else if($rval !== '@always' && $rval !== '@never' &&
        $rval !== '@link') {
        $rval = '@last';
      }
    }
    return $rval;
  }
protected function _getFrameFlag($frame, $options, $name) {
    $flag = "@$name";
    $rval = (property_exists($frame, $flag) ?
      $frame->{$flag}[0] : $options[$name]);
    if($name === 'embed') {
      // default is "@last"
      // backwards-compatibility support for "embed" maps:
      // true => "@last"
      // false => "@never"
      if($rval === true) {
        $rval = '@last';
      } else if($rval === false) {
        $rval = '@never';
      } else if($rval !== '@always' && $rval !== '@never' &&
        $rval !== '@link') {
        $rval = '@last';
      }
    }
    return $rval;
  }
protected function _getFrameFlag ( $ frame , $ options , $ name ) { $ flag = "@$name" ; $ rval = ( property_exists ( $ frame , $ flag ) ? $ frame -> { $ flag } [ 0 ] : $ options [ $ name ] ) ; if ( $ name === 'embed' ) { // default is "@last" // backwards-compatibility support for "embed" maps: // true => "@last" // false => "@never" if ( $ rval === true ) { $ rval = '@last' ; } else if ( $ rval === false ) { $ rval = '@never' ; } else if ( $ rval !== '@always' && $ rval !== '@never' && $ rval !== '@link' ) { $ rval = '@last' ; } } return $ rval ; }
Gets the frame flag value for the given flag name.

@param stdClass $frame the frame.
@param stdClass $options the framing options.
@param string $name the flag name.

@return mixed $the flag value.
Gets the frame flag value for the given flag name .