base = $base; $this->css_class( 'plainview_sdk_table' ); } /** @brief Use the base's _() method to translate this string. sprintf aware. @param string $string String to translate. @return string Translated string. **/ public function _( $string ) { return call_user_func_array( array( $this->base, '_' ), func_get_args() ); } public function __toString() { $r = ''; if ( isset( $this->top ) ) $r .= $this->top; $r .= parent::__toString(); return $r; } /** @brief Create the top tablenav row. @since 20131019 **/ public function top() { if ( ! isset( $this->top ) ) $this->top = new top\top; return $this->top; } /** @brief Create the bulk actions in the top of the table. @since 20131015 **/ public function bulk_actions() { $top = $this->top(); if ( ! $top->left->has( 'bulk_actions' ) ) $top->left->put( 'bulk_actions', new top\bulkactions( $this ) ); return $top->left->get( 'bulk_actions' ); } }